There are 24 boys and 16 girls in Class 1 of the fourth grade in Jinfeng Primary School. The average height of the boys is 140 cm, and the average height of the girls is 145 cm. What is the average height of all the students in this class in cm?
金凤小学四年级一班有24名男生和16名女生，男生的平均身高是140厘米，女生的平均身高是145厘米，这个班全体同学的平均身高是多少厘米．
<gadget id="calculator">140 * 24</gadget>
<output>3_360</output>

<gadget id="calculator">145 * 16</gadget>
<output>2_320</output>

<gadget id="calculator">3_360 + 2_320</gadget>
<output>5_680</output>

<gadget id="calculator">24 + 16</gadget>
<output>40</output>

<gadget id="calculator">5_680 / 40</gadget>
<output>142</output>

<result>142</result>