The school bought 160 science and technology books, and after lending them to 5 classes of the fourth grade, there were 40 books left. How many books did each class borrow on average?
学校买来160本科技书，借给四年级的5个班后，还剩下40本，平均每个班借了多少本？
<gadget id="calculator">160 - 40</gadget>
<output>120</output>

<gadget id="calculator">120 / 5</gadget>
<output>24</output>

<result>24</result>