truck and a bus depart from City A and City B at the same time respectively, and drive toward each other. The truck returns immediately after arriving in City B, and the bus also returns immediately after arriving in City A. It is known that the speed ratio of the truck and the bus is 4:3. After the two vehicles meet for the first time, the truck accelerates by 25%, and the bus decelerates (1/3). The distance between the first head-on encounter and the second head-on encounter is 24 Kilometers, how many kilometers are the distance between A and B?
一辆卡车和一辆客车分别从甲、乙两城同时出发，相向而行，卡车到达乙城后立即返回，客车到达甲城后也立即返回．已知卡车和客车的速度比为4：3，两车第一次相遇后，卡车加速25%，客车减速(1/3)，两车第1次迎面相遇地点距离第2次迎面相遇地点24千米，甲、乙两城相距多少千米？
<gadget id="calculator">4 + 3</gadget>
<output>7</output>

<gadget id="calculator">4 / 7</gadget>
<output>4/7 = around 0.571429</output>

<gadget id="calculator">24 / (4/7)</gadget>
<output>42</output>

<result>42</result>