Why does the math class make students sad?
Answer: Because it is full of problems.
Explanation: The humor in this joke comes from the double meaning of "problems." While math classes typically involve mathematical problems to solve, the punchline humorously implies that the class is also full of emotional or personal problems, making students feel sad.