There are 8 students in the Chinese extracurricular group in Class 1 of the third grade, and 9 students in the mathematics group, and 3 of them participated in both groups. So how many people are there in these two groups?
三年级1班参加语文课外小组的学生有8人，参加数学小组的学生有9人，其中有3个人这两个小组都参加了．那么这两个小组实际有多少人．
<gadget id="calculator">9 - 3</gadget>
<output>6</output>

<gadget id="calculator">8 + 6</gadget>
<output>14</output>

<result>14</result>