
Mark H. answered 08/11/19
Tutoring in Math and Science at all levels
The probability of having a combination of 2 things is the product of having each one.
Since you have stipulated that the student has a dog, that probability is 1.
You are now looking for cat owners only among the group that owns dogs. The probability of your dog owner also being a cat owner is 18/45, which is 2/5.