A and B are walking toward each other at A and B respectively. The speed ratio of A and B is 5:4. B starts from B to A first. When B is 240 meters away from B, A starts from B. Point A departs for point B. As a result, the distance between the place where the two meet is 3:4 from A and B. So what is the distance between A and B?
甲、乙两人分别在A地和B地相向而行，甲、乙两人的速度比是5：4，乙先从B地出发往A地，当乙离开B地240米时，甲从A地出发往B地，结果两人相遇的地方离A、B两地的距离比是3：4．那么A、B两地的距离是多少？
<gadget id="calculator">5 * 240 * 3</gadget>
<output>3_600</output>

<gadget id="calculator">5 * 240 * 4</gadget>
<output>4_800</output>

<gadget id="calculator">3_600 + 4_800</gadget>
<output>8_400</output>

<gadget id="calculator">5 * 3</gadget>
<output>15</output>

<gadget id="calculator">5 * 4</gadget>
<output>20</output>

<gadget id="calculator">3 * 5</gadget>
<output>15</output>

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

<gadget id="calculator">20 - 15 - 12</gadget>
<output>-7</output>

<gadget id="calculator">15 + (-7)</gadget>
<output>8</output>

<gadget id="calculator">8_400 / 8</gadget>
<output>1_050</output>

<result>1_050</result>