The given problem is a conditional probability problem.
Probability that a student has a cat given that he/she has a dog is represented as:
Thus,
Therefore,
4.5m questions
5.9m answers