Two cars A and B drive towards each other from places A and B at the same time. Car A travels 36 kilometers per hour, and car B travels 42 kilometers per hour. When they meet, car B travels 24 kilometers longer than car A. Find the distance between A and B in kilometers?
甲、乙两辆汽车，同时从A、B两地相向开出，甲车每小时行36千米，乙车每小时行42千米，相遇时乙车比甲车多行24千米．求A、B两地相距多少千米？
<gadget id="calculator">42 + 36</gadget>
<output>78</output>

<gadget id="calculator">42 - 36</gadget>
<output>6</output>

<gadget id="calculator">24 / 6</gadget>
<output>4</output>

<gadget id="calculator">78 * 4</gadget>
<output>312</output>

<result>312</result>