Two cars, fast and slow, are traveling towards each other from places A and B at the same time. The express train travels 40 kilometers per hour and the slow train travels 15 kilometers per hour. Two cars go back and forth between A and B continuously. When the two cars met for the third time, the express train traveled another 360 kilometers and met the slow train. Find the distance between A and B in kilometers?
快、慢两车同时从甲、乙两地相向而行．快车每小时行40千米，慢车每小时行15千米．两车不断地往返于甲、乙两地．当两车第三次相遇以后，快车又行了360千米与慢车相遇．求甲、乙两地相距多少千米？
<gadget id="calculator">360 / 8</gadget>
<output>45</output>

<gadget id="calculator">45 * 3</gadget>
<output>135</output>

<gadget id="calculator">360 + 135</gadget>
<output>495</output>

<gadget id="calculator">495 / 2</gadget>
<output>495/2 = around 247.5</output>

<result>495/2 = around 247.5</result>