Cars A and B are traveling towards each other from A and B respectively at the same time. Car A travels 80 kilometers per hour, and Car B travels 60 kilometers per hour. The distance between the two cars when they meet is 40 kilometers from the midpoint of the journey. How many kilometers is the whole journey?
甲、乙两车同时分别从A、B两地相向而行，甲车每小时行80千米，乙车每小时行60千米，两车相遇时距全程的中点有40千米，问全程长多少千米？
<gadget id="calculator">40 * 2</gadget>
<output>80</output>

<gadget id="calculator">80 - 60</gadget>
<output>20</output>

<gadget id="calculator">80 / 20</gadget>
<output>4</output>

<gadget id="calculator">80 + 60</gadget>
<output>140</output>

<gadget id="calculator">4 * 140</gadget>
<output>560</output>

<result>560</result>