Two cars, passenger and freight, depart from places A and B at the same time and meet at a distance of 12km from the midpoint. It is known that the ratio of the journey of the passenger car to the journey of the truck is 9:8. How many kilometers are there between places A and B?
客、货两车分别从甲、乙两地同时相对开出，在离中点12km处相遇，已知客车的行程与货车行程的比是9：8，甲、乙两地相距多少km？
<gadget id="calculator">12 * 2</gadget>
<output>24</output>

<gadget id="calculator">9 / 17</gadget>
<output>9/17 = around 0.529412</output>

<gadget id="calculator">8 / 17</gadget>
<output>8/17 = around 0.470588</output>

<gadget id="calculator">(9/17) - (8/17)</gadget>
<output>1/17 = around 0.058824</output>

<gadget id="calculator">24 / (1/17)</gadget>
<output>408</output>

<result>408</result>