The fourth-grade students move bricks. There are 12 people who each move 7 yuan, 20 people who each move 6 yuan, and the rest who move 5 yuan each, so that there are 148 yuan left in the end; if there are 30 people who each move 8 yuan, there are 8 people move 9 yuan each, and the rest move 10 yuan each, so that the remaining 20 yuan are allocated in this way. How many bricks are there in total.
四年级学生搬砖，有12人每人各搬7块，有20人每人各搬6块，其余的每人搬5块，这样最后余下148块；如果有30人各搬8块，有8人各搬9块，其余的每人搬10块，这样分配最后余下20块．共有多少块砖．
<gadget id="calculator">30 * 8</gadget>
<output>240</output>

<gadget id="calculator">8 * 9</gadget>
<output>72</output>

<gadget id="calculator">12 * 7</gadget>
<output>84</output>

<gadget id="calculator">20 * 6</gadget>
<output>120</output>

<gadget id="calculator">10 * 30</gadget>
<output>300</output>

<gadget id="calculator">10 * 8</gadget>
<output>80</output>

<gadget id="calculator">5 * 12</gadget>
<output>60</output>

<gadget id="calculator">5 * 20</gadget>
<output>100</output>

<gadget id="calculator">80 - 60 - 100 - 240 - 72 - 20</gadget>
<output>-412</output>

<gadget id="calculator">84 + 120 + 148 + 300 + (-412)</gadget>
<output>240</output>

<gadget id="calculator">10 - 5</gadget>
<output>5</output>

<gadget id="calculator">240 / 5</gadget>
<output>48</output>

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

<gadget id="calculator">10 * 10</gadget>
<output>100</output>

<gadget id="calculator">240 + 72 + 100 + 20</gadget>
<output>432</output>

<result>432</result>