Vehicles A and B travel towards each other at a certain speed from cities A and B at the same time, and meet at a distance of 80 kilometers from city A. After the encounter, the two vehicles continue to move forward at the same speed and return immediately after arriving at the other city. On the way, they meet again at a distance of 60 kilometers from city B. How far is the distance between cities A and B?
甲、乙两车分别以一定的速度从A、B两个城市同时相向而行，在距离A市80千米处相遇，相遇后两车继续以原速前进在各自到对方城市后立即返回，途中又在距B市60千米处相遇，求A、B两城相距多远？
<gadget id="calculator">80 * 3</gadget>
<output>240</output>

<gadget id="calculator">240 - 60</gadget>
<output>180</output>

<result>180</result>