Nolan gave out a survey to some students in his school about their favorite color. Students could choose between red and purple. 238 of those surveyed said their favorite color was red. 66% of the students surveyed said their favorite color was purple. How many students were surveyed in total?​