The school singing and dancing group performed. There were 24 people participating in the singing performance, 32 people participating in the dancing performance, and 16 people participating in both. How many people in the singing and dancing group participated in this performance?
学校歌舞小组演出，参加唱歌表演的有24人，参加跳舞表演的有32人，两样都参加的有16人，歌舞小组共有多少人参加了这次演出．
<gadget id="calculator">32 - 16</gadget>
<output>16</output>

<gadget id="calculator">24 + 16</gadget>
<output>40</output>

<result>40</result>