A classroom has a total of 30 students. The students participated in a survey asking whether they prefer online or in-class learning.
Out of the students, 18 said they prefer online learning.
If a student is chosen at random, what is the probability that this student prefers in-class learning?