Totasakan won 78 pieces of gum playing the bean bag toss at the county fair .At school he gave three to every student in his math class .He only has 9 remaining .How many students are in his class ?