Cars A and B leave opposite places at the same time from places A and B, and meet each other in 4 hours. After meeting, the two cars continue to move forward at the same speed, and car A arrives at point B after another 3.5 hours. At this time, car B is still 40 kilometers away from point A. How many miles is the distance between A and B?
甲、乙两车同时从A、B两地相对开出，4小时相遇．相遇后两车继续以原速前进，甲车又经过3.5小时到达B地，这时乙车离A地还有40千米．AB两地相距多少千米？
<gadget id="calculator">8 - 7</gadget>
<output>1</output>

<gadget id="calculator">40 / 1</gadget>
<output>40</output>

<gadget id="calculator">40 * 8</gadget>
<output>320</output>

<result>320</result>