A classroom survey recorded each student’s favorite household pet.
| Pet type | Number of students |
|---|---|
| Dog | 12 |
| Cat | 9 |
| Rabbit | 4 |
| Hamster | 5 |
If one of the 30 students who took the survey is chosen at random, what is the probability that the student chose cat as their favorite pet?