During the evening self-study, the students did their homework, 32 of them finished their Chinese homework, 25 of them finished their math homework, 8 of them finished both homework, and 2 of them didn't finish their homework. How many people are there in this class?
晚自习时同学们写作业，写完语文作业的有32人，写完数学作业的有25人，两种作业都写完的有8人，都没有写完的有2人．这个班一共有多少人？
<gadget id="calculator">25 - 8</gadget>
<output>17</output>

<gadget id="calculator">32 + 17 + 2</gadget>
<output>51</output>

<result>51</result>