The system of equations to model the number of sheep (x) and chickens (y) is x + y = 8 and 4x + 2y = 20. Solving this system, the farmer has 2 sheep and 6 chickens.
The farmer's problem of determining the number of sheep and chickens can be modeled with a system of linear equations. Let x represent the number of sheep and y represent the number of chickens. The first equation represents the total number of animals, which is 8:
x + y = 8
The second equation accounts for the total number of legs, which is 20. Since each sheep has 4 legs and each chicken has 2 legs, we can write:
4x + 2y = 20
To solve this system of equations, we can use the method of substitution or elimination. Let's use substitution in this case. First, solve the first equation for y:
y = 8 - x
Now, substitute the expression for y into the second equation:
4x + 2(8 - x) = 20
Simplify and solve for x:
4x + 16 - 2x = 20
2x = 4
x = 2
Now, we find y by substituting x into the first equation:
y = 8 - 2 = 6
Therefore, the farmer has 2 sheep and 6 chickens.