passenger car drives from place A to place B, a truck drives from place B to place A, and leaves at the same time, and returns immediately after arriving at the starting point of the other party. The distance from place B to the first meeting is 80 kilometers, and the distance from place A to the second meeting is 50 kilometers. What is the distance between A and B in kilometers?
客车从甲地开往乙地，货车从乙地开往甲地，同时开出，到达对方出发地后立即返回，第一次相遇距乙地80千米，第二次相遇距甲地50千米，甲、乙两地相距多少千米？
<gadget id="calculator">80 * 3</gadget>
<output>240</output>

<gadget id="calculator">240 - 50</gadget>
<output>190</output>

<result>190</result>