There were 30 students in the gym. 70% of the students in the gym were playing basketball. How many students in the gym were playing basketball?