Two cars, A and B, drive towards each other from two places at the same time, and after 4 hours of meeting, A travels 24 kilometers less than B per hour. It is known that the ratio of the speeds of cars A and B is 5:8, how many kilometers are the distance between the two places?
甲乙两辆车同时从两地相向开出，经过4小时相遇，甲每小时比乙少行驶24千米．已知甲乙两车速度之比为5：8，两地相距多少千米？
<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">1 - (5/8)</gadget>
<output>3/8 = around 0.375</output>

<gadget id="calculator">24 / (3/8)</gadget>
<output>64</output>

<gadget id="calculator">64 - 24</gadget>
<output>40</output>

<gadget id="calculator">64 + 40</gadget>
<output>104</output>

<gadget id="calculator">104 * 4</gadget>
<output>416</output>

<result>416</result>