passenger train departs from A to B, and at the same time, a freight train travels from B to A. After 12 hours, the passenger car still has the full distance (1/4) of the distance from B, and the truck exceeds the midpoint by 50 kilometers. It is known that passenger cars travel 18 kilometers more per hour than trucks, how many kilometers are the distance between places A and B?
一列客车从甲地出发开往乙地，同时一列货车从乙地开往甲地，12小时后客车距乙地还有全程的(1/4)的路程，货车则超过中点50千米．已知客车每小时比货车多行18千米，甲、乙两地的路程是多少千米？
<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">12 * 18 * (1/2)</gadget>
<output>108</output>

<gadget id="calculator">4 / 1</gadget>
<output>4</output>

<gadget id="calculator">3 / 4</gadget>
<output>3/4 = around 0.75</output>

<gadget id="calculator">(3/4) * 50</gadget>
<output>75/2 = around 37.5</output>

<gadget id="calculator">108 + (75/2)</gadget>
<output>291/2 = around 145.5</output>

<gadget id="calculator">(3/4) * 12</gadget>
<output>9</output>

<gadget id="calculator">12 * (1/2)</gadget>
<output>6</output>

<gadget id="calculator">9 - 6</gadget>
<output>3</output>

<gadget id="calculator">(291/2) / 3</gadget>
<output>97/2 = around 48.5</output>

<gadget id="calculator">(97/2) * 12</gadget>
<output>582</output>

<gadget id="calculator">582 - 50</gadget>
<output>532</output>

<gadget id="calculator">532 * 2</gadget>
<output>1_064</output>

<result>1_064</result>