From Dongcheng to Xicheng, car A takes 8 hours, and car B takes 10 hours. Cars A and B drive from the east and west cities at the same time, and meet at a distance of 24 kilometers from the midpoint. How many kilometers are the distance between the two cities? ?
从东城到西城，甲车需要8小时，乙车需要10小时，甲、乙两车同时分别从东、西两城对开，在距离中点24千米的地方相遇，两城相距多少千米？
<gadget id="calculator">10 - 8</gadget>
<output>2</output>

<gadget id="calculator">2 / 2</gadget>
<output>1</output>

<gadget id="calculator">8 + 10</gadget>
<output>18</output>

<gadget id="calculator">24 * 1 * 18</gadget>
<output>432</output>

<result>432</result>