The school set up two interest groups, three (1, 27 people participated in the calligraphy and painting group, 24 people participated in the chess group, and 3 people participated in both groups, so how many people participated in the calligraphy, painting and chess group in San 1?
学校开设两个兴趣小组，三(1,27人参加书画小组，24人参加棋艺小组，两个小组都参加的有3人，那么三1一共有多少人参加了书画和棋艺小组．
<gadget id="calculator">24 - 3</gadget>
<output>21</output>

<gadget id="calculator">27 + 21</gadget>
<output>48</output>

<result>48</result>