It takes 6 hours for car A to go from city A to city B, and it takes 8 hours for car B to go from city B to city A. Now two cars, A and B, respectively set off from A and B respectively, start at the same time and go towards each other. After driving for 4 hours, the distance between the two cars is 48 kilometers. Find the distance between the two cities of AB.
甲车从A城到B城需6小时，乙车从B城到A城需8小时．现甲、乙两车分别从A、B两城，同时出发，相向而行．行了4小时两车相距48千米，求AB两城的距离．
<gadget id="calculator">1 / 6</gadget>
<output>1/6 = around 0.166667</output>

<gadget id="calculator">1 / 8</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">(1/6) + (1/8)</gadget>
<output>7/24 = around 0.291667</output>

<gadget id="calculator">(7/24) * 4</gadget>
<output>7/6 = around 1.166667</output>

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

<gadget id="calculator">48 / (1/6)</gadget>
<output>288</output>

<result>288</result>