There are 14 people in the art group in class 31, 10 people in the music group, 6 people in both, and 3 people in neither. How many people are there in class 31?
三1班参加美术小组的有14人，参加音乐小组的有10人，两样都参加的有6人，两样都没有参加的有3人，三1班共有多少人．
<gadget id="calculator">14 - 6</gadget>
<output>8</output>

<gadget id="calculator">10 + 8 + 3</gadget>
<output>21</output>

<result>21</result>