In a class 30 of students, 7 have a cat and 9 have a dog. There are 4 students who have a cat and a dog. What is the probability that a student has a cat given that they have a dog?