A car has been driving from place A to place B for 2 hours, and it is still 30 kilometers away from place B before arriving. It is known that the distance traveled in the first hour is (3/5) the sum of the distance traveled in the second hour and the remaining distance, and the distance traveled in the second hour is exactly the sum of the distance traveled in the first hour and the remaining distance. How many kilometers is the total distance between places A and B?
一辆汽车从甲地开往乙地，已经行了2小时，这时距乙地还有30千米才到达．已知第一时行的路程是第二小时与剩下路程和的(3/5)，第二小时行的恰好是第一小时行的与剩下路程之和．甲乙两地全程多少千米？
<gadget id="calculator">3 + 5</gadget>
<output>8</output>

<gadget id="calculator">3 / 8</gadget>
<output>3/8 = around 0.375</output>

<gadget id="calculator">1 - (3/8) - (3/8)</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">2 / (1/4)</gadget>
<output>8</output>

<gadget id="calculator">30 * 8</gadget>
<output>240</output>

<result>240</result>