There are 46 people in a certain class, 12 people participated in the art group, 23 people participated in the music group, and 5 people participated in both groups. How many people in this class do not participate in either the art group or the music group?
某班共有46人，参加美术小组的有12人，参加音乐小组的有23人，有5人两个小组都参加了．这个班既没参加美术小组也没参加音乐小组的有多少人？
<gadget id="calculator">23 - 5</gadget>
<output>18</output>

<gadget id="calculator">12 + 18</gadget>
<output>30</output>

<gadget id="calculator">46 - 30</gadget>
<output>16</output>

<result>16</result>