A and B walk towards each other from places A and B. If they start at the same time, they can meet each other after 8 hours. However, when A travels for 6 hours and B travels for 5 hours, they stop. The distance is 180km, known, B travels 40km per hour, find the distance of AB.
甲、乙二人从A、B两地相向而行，若同时出发，经过8小时二人可以相遇，但当甲行6小时，乙行5小时后，二人停了下来，结果二人仍相距180km，已知，乙每小时行40km，求AB距离．
<gadget id="calculator">8 - 5</gadget>
<output>3</output>

<gadget id="calculator">40 * 3</gadget>
<output>120</output>

<gadget id="calculator">180 - 120</gadget>
<output>60</output>

<gadget id="calculator">8 - 6</gadget>
<output>2</output>

<gadget id="calculator">60 / 2</gadget>
<output>30</output>

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

<gadget id="calculator">70 * 8</gadget>
<output>560</output>

<result>560</result>