One third of the seventh grade class bought tickets for the seventh grade dance. Then, 32 students bought tickets at the door. If there were 158 students at the dance, how many total students are there in the seventh grade?