The joke is a pun. A question that tests the student's abilities to complete math equations is called a 'math problem'.  'Problems' could also refer to personal conflicts between people, or 'drama'.
Math class is full of drama . There are so many problems to work out .