Teacher Li rode from Village A to Village B, and Teacher Liu walked from Village B to Village A at the same time. After 18 minutes, the two met on the way and continued to go forward respectively. Teacher Li went to Village B to rest for 20 minutes and returned along the same road. In Village A, Mr. Liu was still 280 meters away from Village A. It is known that Mr. Li's speed is three times that of Mr. Liu's. Find the distance between the two villages.
李老师骑车从甲村到乙村，同时刘老师由乙村步行到甲村，经过18分钟两人在中途相遇后，分别继续往前走；李老师到乙村休息20分钟后，沿原路返回甲村时，刘老师还距甲村280米．已知李老师的速度是刘老师速度的3倍．求两村之间的距离．
<gadget id="calculator">18 * 3</gadget>
<output>54</output>

<gadget id="calculator">18 + 54</gadget>
<output>72</output>

<gadget id="calculator">18 / 3</gadget>
<output>6</output>

<gadget id="calculator">18 + 6 + 20</gadget>
<output>44</output>

<gadget id="calculator">72 - 44</gadget>
<output>28</output>

<gadget id="calculator">280 / 28</gadget>
<output>10</output>

<gadget id="calculator">10 * 3</gadget>
<output>30</output>

<gadget id="calculator">10 + 30</gadget>
<output>40</output>

<gadget id="calculator">40 * 18</gadget>
<output>720</output>

<result>720</result>