During the Beijing Olympic Games, a shopping mall bought a batch of "Olympic mascots" for 960 yuan and sold them at 40 yuan each, and they were sold out quickly. According to the market survey, the Olympic mascots need about 5 times the quantity, so the shopping mall bought the required Olympic mascots for 4640 yuan. Due to the large purchase volume, each purchase price was 1 yuan lower than the last time. They are sold at 40 yuan each, and the remaining 9 are sold at a 20% discount. What is the total profit of the mall in these two transactions? (excluding labor costs)
北京奥运会期间，某商场用960元购进一批"奥运吉样物"，按每个40元出售，很快销售一空．经市场调查，大概还需要5倍数量这种奥运吉祥物，于是商场用4640元购进所需奥运吉样物，由于购买量较大，每个进价比上次优惠1元，该商场仍按每个40元出售，最后剩下9个按八折卖出，这两次生意该商场总盈利是多少元．(不计人工等费用)
<gadget id="calculator">4_800 - 4_640</gadget>
<output>160</output>

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

<gadget id="calculator">160 / 5</gadget>
<output>32</output>

<gadget id="calculator">960 / 32</gadget>
<output>30</output>

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

<gadget id="calculator">10 * 32</gadget>
<output>320</output>

<gadget id="calculator">30 - 1</gadget>
<output>29</output>

<gadget id="calculator">40 - 29</gadget>
<output>11</output>

<gadget id="calculator">160 - 9</gadget>
<output>151</output>

<gadget id="calculator">11 * 151</gadget>
<output>1_661</output>

<gadget id="calculator">40 * 0.8</gadget>
<output>32</output>

<gadget id="calculator">32 - 29</gadget>
<output>3</output>

<gadget id="calculator">3 * 9</gadget>
<output>27</output>

<gadget id="calculator">320 + 1_661 + 27</gadget>
<output>2_008</output>

<result>2_008</result>