Taxi fares in Nanjing are stipulated as follows: the starting fare within 3 kilometers is 8 yuan, and the charge is 2 yuan for each additional kilometer after that, and Xiaohong’s total cost is 18 yuan. How many kilometers did Xiaohong take?
南京市出租车费是这样规定的：3千米以内起步价为8元，以后每多1千米收2元，小红一共用去18元，小红坐了多少千米？
<gadget id="calculator">18 - 8</gadget>
<output>10</output>

<gadget id="calculator">10 / 2</gadget>
<output>5</output>

<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<result>8</result>