Train A is 240 meters long and travels 20 meters per second; train B is 264 meters long and travels 16 meters per second. How many seconds does it take for the two cars to move toward each other from the front of the two cars to the rear of the two cars?
甲列火车长240米，每秒行20米；乙列火车长264米，每秒行16米，两车相向而行从两车头相遇到两车尾相离需要几秒？
<gadget id="calculator">240 + 264</gadget>
<output>504</output>

<gadget id="calculator">20 + 16</gadget>
<output>36</output>

<gadget id="calculator">504 / 36</gadget>
<output>14</output>

<result>14</result>