At a certain high school, 50% of the students take Spanish as their foreign language. If 493 students take Spanish how many students attend high school?