There are several chickens and rabbits in the cage. Counting from the top, there are eight heads; counting from the bottom, there are 22 feet 1. Solve by equation

There are several chickens and rabbits in the cage. Counting from the top, there are eight heads; counting from the bottom, there are 22 feet 1. Solve by equation


In the case of bivariate linear equation:
If there are x chickens and Y rabbits, then:
x+y=8
2x+4y=22
We get x = 5
y=3
A: there are 5 chickens and 3 rabbits