In a community of 50 families, 15 families own 2 dogs, 20 families own 1 dog, while the remaining families own 2 cats each. How many dogs and cats are there in all?
Please reason step by step, and put your final answer within \boxed{}.
user