In a class of 30 students, 18 students prefer chocolate ice cream, while the rest prefer vanilla ice cream. If a student is selected at random from the class, what is the probability that the student prefers chocolate ice cream?
To solve this problem, use the formula for probability:
$$ P(A) = \f\frac{\text{Number of favorable outcomes}}{\text{Total number of outcomes}} $$