There are 18 people participating in the language group, 14 people participating in the mathematics group, and 6 people participating in both the language and mathematics groups. How many people participated in these two groups?
参加语文小组的有18人，参加数学小组的有14人，有6人同时参加了语文、数学小组，参加这两个小组的一共有多少人．
<gadget id="calculator">14 - 6</gadget>
<output>8</output>

<gadget id="calculator">18 + 8</gadget>
<output>26</output>

<result>26</result>