Cars A and B start from places A and B at the same time and drive toward each other. The two cars meet for the first time at a distance of 80 kilometers from place B. After the encounter, the two vehicles continue to drive at the same speed, and immediately return along the original road after reaching the starting point of the other party. On the way, the two vehicles meet for the second time at a distance of 40 kilometers from A. How many kilometers are the distance between A and B?
甲、乙两车同时从A、B两地出发相向而行，两车在离B地80千米处第一次相遇．相遇后两车仍以原速继续行驶，并且在到达对方出发点后，立即沿原路返回，途中两车在距A地40千米处第二次相遇，A，B两地相距多少千米．
<gadget id="calculator">80 * 3</gadget>
<output>240</output>

<gadget id="calculator">240 - 40</gadget>
<output>200</output>

<result>200</result>