certain class organized chess and military chess competitions. There were 32 people participating in the chess competition, 28 people participating in the military chess competition, and 18 people participating in both competitions. How many people in this class participated in the chess competition?
某班组织象棋和军棋比赛，参加象棋比赛的有32人，参加军棋比赛的有28人，有18人两项比赛都参加了，这个班参加棋类比赛的共有多少人？
<gadget id="calculator">32 - 18</gadget>
<output>14</output>

<gadget id="calculator">28 - 18</gadget>
<output>10</output>

<gadget id="calculator">14 + 10 + 18</gadget>
<output>42</output>

<result>42</result>