Class 3 and Class 1 participated in the competition, among which 32 participated in the badminton competition, 28 participated in the table tennis competition, and 10 participated in both. How many students in Class 3 participated in the competition?
三1班同学参加比赛，其中参加羽毛球比赛的有32人，参加乒乓球比赛的有28人，两项都参加的有10人．三1班共有多少个同学参加比赛．
<gadget id="calculator">28 - 10</gadget>
<output>18</output>

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

<result>50</result>