Answer: 9/25
Explanation:
Since 3 of them have neither a cat or a dog, that means 22 (25-3) of them have a dog, a cat, or both.
16 + 15 = 31, which is 9 more than 22. That means 9 of them have both a dog and a cat.
Out of the 25 people, 9 have both a cat and dog, which means the probablity a student chosen at random has both is 9/25.