There are 22 people from class 31 participating in the art interest group, 28 people participating in the sports interest group, 5 people participating in both interest groups, how many people in class 31 participating in these two interest groups?
三1班参加美术兴趣小组的有22人，参加体育兴趣小组的有28人，两个兴趣小组都参加的有5人，三1班参加这两个兴趣小组的一共有多少人．
<gadget id="calculator">28 - 5</gadget>
<output>23</output>

<gadget id="calculator">22 + 23</gadget>
<output>45</output>

<result>45</result>