In Ty's math class, 20% of students earned an A on a test. If there were 30 students in the class, how many got an A?