From A to B, the uphill road accounts for (1/5), the flat road accounts for (3/8), and the rest is downhill. The small army first ran from A to B, and then from B to A. A total of 510 meters of downhill running back and forth. What is the distance between A and B in meters?
从甲地到乙地，上坡路占(1/5)，平坦路占(3/8)，其余是下坡路．小军先从甲地跑到乙地，再从乙地跑到甲地．往返一次共跑下坡路510米．甲、乙两地的距离是多少米？
<gadget id="calculator">510 / 2</gadget>
<output>255</output>

<gadget id="calculator">1 / 5</gadget>
<output>1/5 = around 0.2</output>

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

<gadget id="calculator">1 - (1/5) - (3/8)</gadget>
<output>17/40 = around 0.425</output>

<gadget id="calculator">255 / (17/40)</gadget>
<output>600</output>

<result>600</result>