Something had 1 2/3 as many dogs as cats in his house. After he gave away 5 dogs and 4 cats, there were 15 animals left. How many more dogs than cats did he have at first?

d = 5/3 c

d+c = 5+4+15
solve, then find d-c