Given:
The ratio of cats to dogs is 3:7.
12 dogs escaped and the ratio is now 3 : 4.
To find:
The total number of animal at the beginning.
Solution:
Let the number of cats and dogs at the beginning are 3x and 7x respectively.
12 dogs escaped. So, the remaining number of dogs is (7x-12).
New ratio of cats and dogs is 3:4.
![(3x)/(7x-12)=(3)/(4)](https://img.qammunity.org/2022/formulas/mathematics/high-school/onwomxxs5aytuxiaqqmbjhfanz3gapmbnc.png)
![4(3x)=3(7x-12)](https://img.qammunity.org/2022/formulas/mathematics/high-school/aofq3v7dpn0hm9hzx45c5ctzkishd9sxye.png)
![12x=21x-36](https://img.qammunity.org/2022/formulas/mathematics/high-school/i8bhh97wov7a6kygxspmcpp6yujuogmyo3.png)
![12x-21x=-36](https://img.qammunity.org/2022/formulas/mathematics/high-school/kj70wp0uam9nt1ezeyxd6tdqc45pezkfvc.png)
![-9x=-36](https://img.qammunity.org/2022/formulas/mathematics/high-school/15abk3rbb38yvknjwhn444pm35ypqwjhel.png)
Divide both sides by -9.
![(-9x)/(-9)=(-36)/(-9)](https://img.qammunity.org/2022/formulas/mathematics/high-school/u1k7986e03ll8w8qyihseziuhxkj0wap50.png)
![x=4](https://img.qammunity.org/2022/formulas/mathematics/high-school/lp82zoco0xlpxlhep3s8xzw5somhig1a8c.png)
Now, the total number of animals at the beginning is
![Total=3x+7x](https://img.qammunity.org/2022/formulas/mathematics/high-school/bbnlsr8jgmu92qufgiziu4kofy51s82pze.png)
![Total=10x](https://img.qammunity.org/2022/formulas/mathematics/high-school/i37r1vwnawe5lv6ws9li2lh3aaa54xnggp.png)
![Total=10(4)](https://img.qammunity.org/2022/formulas/mathematics/high-school/5swg9tcepwinpkrz9hucnhjcmwhltjymfj.png)
![Total=40](https://img.qammunity.org/2022/formulas/mathematics/high-school/mmh05fr2yfr7ofipwbuq49ebh3lgjlb8q8.png)
Therefore, the total number of animals at the beginning is 40.