In the second class of the third grade, there were 24 people who subscribed to "Mickey Mouse", and 22 people who subscribed to "The King of Wisdom". Everyone in the class subscribed to at least one of these two periodicals, and 4 people subscribed to both. How many people are there in Class 2, Grade 3?
三年级二班订《米老鼠》的有24人，订《智力大王》的有22人，全班每人至少订了这两种期刊中的一种，两种都订的有4人．三年级二班一共有多少人？
<gadget id="calculator">22 - 4</gadget>
<output>18</output>

<gadget id="calculator">24 + 18</gadget>
<output>42</output>

<result>42</result>