In a third grade class, 24 people subscribed to "Magic Chinese", 28 people subscribed to "Mathematics King", and 10 people subscribed to both. How many students subscribed to the magazine?
三年级某班有24人订阅《神奇语文》，有28人订阅《数学大王》，其中有10人两种都订了，订阅杂志的学生共有多少人．
<gadget id="calculator">28 - 10</gadget>
<output>18</output>

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

<result>42</result>