A classroom with a flat roof is 10 meters long, 8 meters wide, and 4 meters high. The classroom doors, windows and blackboards have a total area of 50 square meters. If it costs 8 yuan per square meter to paint the ceiling and walls of the classroom, how much is the total cost to paint the classroom?
一间平顶教室长10米，宽8米，高4米，教室的门窗和黑板的面积一共有50平方米．如果粉刷教室的顶面和墙壁，每平方米需要8元钱，粉刷这个教室共需多少元？
<gadget id="calculator">10 * 8</gadget>
<output>80</output>

<gadget id="calculator">10 * 4</gadget>
<output>40</output>

<gadget id="calculator">8 * 4</gadget>
<output>32</output>

<gadget id="calculator">40 + 32</gadget>
<output>72</output>

<gadget id="calculator">72 * 2</gadget>
<output>144</output>

<gadget id="calculator">144 - 50</gadget>
<output>94</output>

<gadget id="calculator">80 + 94</gadget>
<output>174</output>

<gadget id="calculator">174 * 8</gadget>
<output>1_392</output>

<result>1_392</result>