There are 32 students in a class in a certain university, 26 of them passed the first exam, and 24 of them passed the second exam. If 4 students failed to pass both exams, then the two exams How many people have passed?
某大学某班学生总数为32人，在第一次考试中有26人及格，在第二次考试中有24人及格，若两次考试中，都没有及格的有4人，那么两次考试都及格的人数？
<gadget id="calculator">26 + 24</gadget>
<output>50</output>

<gadget id="calculator">32 - 4</gadget>
<output>28</output>

<gadget id="calculator">50 - 28</gadget>
<output>22</output>

<result>22</result>