There are 36 students in the third grade, 24 of them participated in the mathematics interest group, 18 participated in the English interest group, and 4 did not participate in either. How many people participated in both?
三年级一共有学生36人，其中参加数学兴趣小组的有24人，参加英语兴趣小组的有18人，两个都不参加的有4人．两个全参加的有多少人？
<gadget id="calculator">36 - 4</gadget>
<output>32</output>

<gadget id="calculator">18 - 32</gadget>
<output>-14</output>

<gadget id="calculator">24 + (-14)</gadget>
<output>10</output>

<result>10</result>