Ted won 41 pieces of gum playing basketball at the county fair. At school he gave two to every student in his math class. He only has 9 remaining. How many students are in his class?