Generally, all students in the fourth grade take the intelligence test and do two questions. Among them, 35 people answered the first question correctly, 23 people answered the second question correctly, and 18 people answered both questions correctly. There are 10 people, how many people are there in this class?
四年级一般全体学生参加智能测试共做两道题，其中，答对第一题的有35人，答对第2题的有23人，两道题都答对的有18人两道题都做错的有10人，这个班一共有多少人？
<gadget id="calculator">23 - 18</gadget>
<output>5</output>

<gadget id="calculator">35 + 5</gadget>
<output>40</output>

<result>40</result>