Students in a certain class have at least one of color TV and refrigerator in their homes, 32 of them have color TV in their homes, 40 have refrigerators in their homes, and 24 have both color TV and refrigerator. How many students are there in this class?
某班级学生家中至少有彩色电视机和电冰箱中一种，其中32人的家中有彩色电视机，40人家中有电冰箱，彩色电视机和电冰箱都有的为24人．这个班学生有多少人？
<gadget id="calculator">40 - 24</gadget>
<output>16</output>

<gadget id="calculator">32 + 16</gadget>
<output>48</output>

<result>48</result>