Two cars, A and B, are driving towards each other from AB. After 3 hours, the two cars meet. At this time, the ratio of the distance traveled by A and B is 7:5. A travels 24 kilometers longer than B. How many kilometers is the distance between A and B? rice?
甲乙两辆汽车分别从AB两地相对而行，3小时后两车相遇，这时甲乙两车所行路程的比是7：5，甲比乙多行24千米，AB两地相距多少千米？
<gadget id="calculator">7 + 5</gadget>
<output>12</output>

<gadget id="calculator">7 / 12</gadget>
<output>7/12 = around 0.583333</output>

<gadget id="calculator">5 / 12</gadget>
<output>5/12 = around 0.416667</output>

<gadget id="calculator">(7/12) - (5/12)</gadget>
<output>1/6 = around 0.166667</output>

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

<result>144</result>