Total number of dogs and cats in the pet store are 60
So this gives us our first equation:
...............(1)
.................(2)
There are 10 fewer cats than dogs.
So this gives us the second equation:
.............(2)
Now let us use substitution method here.
Plugging the value of c from equation (2) in equation (3)



this gives d=25
plugging this in equation 2 to find c

c=15
Answer : The pet store has 15 cats and 25 dogs.