So,
The ratio of dogs to cats:
[tex] \frac{2}{5} [/tex]
The other proportion:
[tex] \frac{x}{140} [/tex]
[tex] \frac{2}{5} = \frac{x}{140} [/tex]
5 times 28 is 140.
Multiply the fraction by the appropriate form of 1
[tex] \frac{2}{5} * \frac{28}{28} = \frac{56}{140} [/tex]
There are 56 dogs when the number of cats is 140.