Cars A and B leave opposite places at the same time from places A and B, and car A travels 20 kilometers more than car B per hour. On the way, B spent 2 hours repairing the car, and 6 hours later, car A arrived at the midpoint between the two places, while car B only traveled half of the distance traveled by car A. How many kilometers are there between A and B?
甲、乙两车同时从A、B两地相对开出，甲车每小时比乙车多行20千米．途中乙因修车用了2小时，6小时后甲车到达两地中点，而乙车才行了甲车所行路程的一半．A、B两地相距多少千米？
<gadget id="calculator">6 * 20</gadget>
<output>120</output>

<gadget id="calculator">6 * 2</gadget>
<output>12</output>

<gadget id="calculator">2 * 2</gadget>
<output>4</output>

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

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

<gadget id="calculator">60 + 20</gadget>
<output>80</output>

<gadget id="calculator">80 * 6 * 2</gadget>
<output>960</output>

<result>960</result>