Two cars, passenger and freight, depart from places A and B opposite each other. After 10 hours, the passenger car is still 1/10 of the full distance from point B. The truck exceeds the midpoint by 78 kilometers. It is known that the passenger car travels 4,000 more per hour than the truck meters, find the distance between places A and B.
客货两车分别从甲乙两地相对开出，10小时后，客车距乙地还有全程的(1/10)，货车超过中点78千米，已知客车比货车每小时多走4千米，求甲乙两地的路程．
<gadget id="calculator">78 + 40</gadget>
<output>118</output>

<gadget id="calculator">1 / 10</gadget>
<output>1/10 = around 0.1</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">1 - (1/10) - (1/2)</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">118 / (2/5)</gadget>
<output>295</output>

<result>295</result>