There are 50 students in a class. In the spring school sports meeting, 24 students participated in the field competition and 32 students participated in the track competition. Everyone participated in at least one of them. How many students in this class participated in both.
一个班有学生50人，在春季校运动会上，参加田赛的有24人，参加径赛的有32人，每人至少参加其中的一项，则这个班两项都参加的有多少人．
<gadget id="calculator">32 - 50</gadget>
<output>-18</output>

<gadget id="calculator">24 + (-18)</gadget>
<output>6</output>

<result>6</result>