Passenger and freight cars depart from A and B at the same time. When the passenger car travels the entire distance (5/8), the distance between the passenger car and the freight car is 25 kilometers. If the ratio of the distance traveled by the passenger car and the freight car is 7: 6. Please calculate the distance between A and B in kilometers?
客、货两车从A、B两地同时相对开出，当客车行了全程的(5/8)时，与货车相距25千米，如果客、货两车所行的路程比是7：6．请你算一算A、B两地相距多少千米？
<gadget id="calculator">1 / 56</gadget>
<output>1/56 = around 0.017857</output>

<gadget id="calculator">25 / (1/56)</gadget>
<output>1_400</output>

<result>1_400</result>