There are two trains, one is 200 meters long and travels 32 meters per second; the other is 340 meters long and travels 20 meters per second. Two cars are traveling in the same direction, from the time when the front of the first train catches up with the rear of the second train, to when the rear of the first train overtakes the front of the second train, how many seconds will it take?
有两列火车，一列长200米，每秒行32米；一列长340米，每秒行20米．两车同向而行，从第一列车的车头追及第二列车的车尾，到第一列车的车尾超过第二列车的车头，共要几秒？
<gadget id="calculator">200 + 340</gadget>
<output>540</output>

<gadget id="calculator">32 - 20</gadget>
<output>12</output>

<gadget id="calculator">540 / 12</gadget>
<output>45</output>

<result>45</result>