Two cars start from A and B at the same time and drive toward each other. It is known that car A takes 1.5 hours longer than car B to complete the journey, car A travels 40 kilometers per hour, and car B travels 50 kilometers per hour. What is the total length of A and B in kilometers?
两辆汽车从甲、乙两地同时出发，相向而行．已知甲车行完全程比乙车多用1.5小时，甲车每小时行40千米，乙车每小时行50千米．甲乙两地的全长是多少千米？
<gadget id="calculator">50 - 40</gadget>
<output>10</output>

<gadget id="calculator">1.5 / 10</gadget>
<output>0.15</output>

<gadget id="calculator">40 * 0.15</gadget>
<output>6</output>

<gadget id="calculator">50 * 6</gadget>
<output>300</output>

<result>300</result>