Solve the following:
Q: If a person adopts a pet there is a 45% it'll be a cat and 55% it will be a dog (a local dog and cat adoption). If a cat is adopted there is 60% chance it will be a female. If a dog is adopted there is 35% chance it is a female. A random selection is made and it was a male. What is the the probability that the selection is a dog?