The students in class one of three years participated in the school sports meeting. 26 people participated in the rope skipping and 30 people participated in the race. Among them, 12 people participated in both rope skipping and running, and 4 people did not participate in both rope skipping and running. How many students are there in class three?
三年一班的同学参加学校运动会，参加跳绳的有26人，参加赛跑的有30人，其中既参加跳绳又参加赛跑的有12人，跳绳和赛跑都没有参加的有4人．三年一班有学生多少人．
<gadget id="calculator">30 - 12</gadget>
<output>18</output>

<gadget id="calculator">26 + 18 + 4</gadget>
<output>48</output>

<result>48</result>