During the holiday, Teacher Wang recommended two cartoons, "Frozen" and "Crazy Primitives" to Class 31 students for everyone to choose to watch. 36 people watched both movies, and only 2 people watched neither movie; 40 people watched "Frozen", and 38 people watched "Crazy Primitives". How many people are there in class three and one?
假期中，王老师给三1班同学推荐了《冰雪奇缘》和《疯狂原始人》两部动画片供大家选择观看．两部电影都看的有36人，两部电影都没看的只有2人；看了《冰雪奇缘》的有40人，看了《疯狂原始人》的有38人．三1班一共有多少人？
<gadget id="calculator">38 - 36</gadget>
<output>2</output>

<gadget id="calculator">40 + 2 + 2</gadget>
<output>44</output>

<result>44</result>