Answer:
The farmer has 30 pigs and 40 chickens.
Explanation:
This situation represents a system of equations.
⭐What is a system of equations?
- A system of equation is two or more equations that intersect at a point (x,y)
⭐ What are the two equations for this situation?
- To make the 2 equations for this situation, we need to declare what the variables are.
Pigs and chickens have 1 head, so let's create the equation:
This equation represents the number of heads present
Let x = the number of pigs, and let y = the number of chickens
Pigs have 4 legs, while chickens have 2 legs, so let's create the equation:

The equation represents the number of legs present
⭐Now that we made the two equations, let's solve the system of equations.
⭐How do you solve a system of equations?
- Elimination
- Substitution
- Graphing
In this case, substitution is the best way we can solve this system of equations.
⭐How do we solve a system using substitution?
- You take one equation, set it equal to one variable, and literally substitute said variable into another equation, and solve for another variable.
To understand substitution, I'll demonstrate it here with our system:
. . . . (1)
. . . . (2)
Set equation 1 equal to "y" so we can solve for "x":

Substitute "y" into equation 2:






∴ There are 30 pigs on the farm.
Substitute "x" back into equation 1 to solve for "y":



∴ There are 40 chickens on the farm.