3/8 of the seventh grade students were taking advanced math at the beginning of the year, but seven dropped out by the end of the year. if there were 149 students taking advanced math at the end of the year, how many total 7th grade students are there?