Two cars A and B drive towards each other from A and B at the same time. Car A travels 42 kilometers per hour, and car B travels 54 kilometers per hour. The two cars meet at a distance of 18 kilometers from the midpoint. What is the distance in miles between A and B?
甲、乙两辆汽车同时从A、B两地相向开出，甲车每小时行42千米，乙车每小时行54千米，两车在离中点18千米处相遇．A、B两地的距离是多少千米？
<gadget id="calculator">18 * 2</gadget>
<output>36</output>

<gadget id="calculator">54 - 42</gadget>
<output>12</output>

<gadget id="calculator">36 / 12</gadget>
<output>3</output>

<gadget id="calculator">42 + 54</gadget>
<output>96</output>

<gadget id="calculator">3 * 96</gadget>
<output>288</output>

<result>288</result>