A passenger car and a truck depart from two places at the same time. The passenger car is 42 kilometers per hour, and the truck is 50 kilometers per hour. The two vehicles meet at a distance of 24 kilometers from the midpoint. How long does it take for the two cars to meet?
一辆客车和一辆货车分别从两地同时相对开出，客车每小时42千米，货车每小时50千米，两车在距离中点24千米处相遇．求两车几小时相遇？
<gadget id="calculator">50 - 42</gadget>
<output>8</output>

<gadget id="calculator">2 / 8</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">24 * (1/4)</gadget>
<output>6</output>

<result>6</result>