Joke Collection Website - Cold jokes - Principle and practice of chicken and rabbit in the same cage

Principle and practice of chicken and rabbit in the same cage

The easiest way is to set xy and solve simultaneous equations.

If the primary school law assumes that it is a chicken, there will definitely be more rabbit legs, because rabbits have four legs, chickens have two legs, and there are two legs short (all rabbits are redundant), that is, the extra part divided by two equals the number of rabbits; Assuming that they are all rabbits, there will definitely be fewer drumsticks, because rabbits have four legs, chickens have two legs, and two legs are missing (both chickens are missing), that is, the missing part divided by two equals the number of extra chickens.

Let me give you an example: a cage chicken and a rabbit have 20 legs, 14 if they are both chickens, and 28 if they are both rabbits. How many chickens and rabbits do you want?

Solution (20- 14)/2=3 rabbits, (28-20)/2=4 chickens.

I wrote it casually, and by the way, I recalled the life of the primary school Olympiad class. ...