There are 40 chickens and rabbits in the cage. The total number of chicken legs is 20 more than that of rabbit legs. How many chickens and rabbits are there respectively

There are 40 chickens and rabbits in the cage. The total number of chicken legs is 20 more than that of rabbit legs. How many chickens and rabbits are there respectively

4-2 = 2
20 △ 2 = 10
40 △ 2 + 10 = 30 chickens
40-30 = 10 rabbits