A car drives from place A to place B. The ratio of the distance traveled on the first day to the distance not traveled is 2:5. On the second day, it travels 240 kilometers and reaches the midpoint between the two places. How many kilometers is the distance?
一辆汽车从甲地开往乙地，第一天行驶路程与未行驶路程的比是2：5，第二天又行驶了240千米，正好到达两地的中点，甲乙两地之间的路程是多少千米？
<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">5 + 2</gadget>
<output>7</output>

<gadget id="calculator">2 / 7</gadget>
<output>2/7 = around 0.285714</output>

<gadget id="calculator">(1/2) - (2/7)</gadget>
<output>3/14 = around 0.214286</output>

<gadget id="calculator">240 / (3/14)</gadget>
<output>1_120</output>

<result>1_120</result>