Chickens and rabbits in the same cage, 8 heads, 20 legs, how many chickens and rabbits each? Using equation

Chickens and rabbits in the same cage, 8 heads, 20 legs, how many chickens and rabbits each? Using equation


The simplest algorithm of chicken and rabbit in the same cage is to divide the number of legs more than the head by 2, and the total number of rabbits is the number of chickens