Lin Lin, Bing Bing and Cong Cong race, and Lin Lin is the first to reach the finish line. At this time, Cong Cong still has 20 meters to the finish line, and Bing Bing has 30 meters to the finish line. After that, the speeds of Bingbing and Congcong remained unchanged. When Congcong reached the finish line, Bingbing was still 12 meters away from the finish line. So how many meters did they cover in the whole race?
林林、兵兵和聪聪赛跑，林林第一个到达终点，此时聪聪还有20米到终点，兵兵还有30米到终点．之后兵兵和聪聪的速度都不变，当聪聪到达终点时，兵兵离终点还有12米，那么他们比赛的全程是多少米？
<gadget id="calculator">20 * 12</gadget>
<output>240</output>

<gadget id="calculator">20 * 30</gadget>
<output>600</output>

<gadget id="calculator">600 - 600</gadget>
<output>0</output>

<gadget id="calculator">240 + 0</gadget>
<output>240</output>

<gadget id="calculator">20 - 30</gadget>
<output>-10</output>

<gadget id="calculator">12 + (-10)</gadget>
<output>2</output>

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

<result>120</result>