The whole class participates in sports competitions. Among them, 32 students participated in the long jump competition, 28 students participated in the running competition, and 10 students participated in both. How many people are there in the class?
全班同学都参加体育比赛，其中参加跳远比赛的有32人，参加跑步比赛的有28人，两项都参加的有10人，问全班共有多少人？
<gadget id="calculator">28 - 10</gadget>
<output>18</output>

<gadget id="calculator">32 + 18</gadget>
<output>50</output>

<result>50</result>