To determine the number of chickens and pigs, we can use a system of equations.
Let's represent the number of pigs as 'P' and the number of chickens as 'C'.
Since each pig has 4 legs and each chicken has 2 legs, we can write the equation for the total number of legs as:
4P + 2C = 50 (Equation 1)
We also know that the total number of animals is 18, so we can write another equation for the total number of animals:
P + C = 18 (Equation 2)
To solve the system of equations, we can use different methods like substitution or elimination.
Method 1: Substitution
------------------------
Rearrange Equation 2 to express one variable in terms of the other:
C = 18 - P
Substitute this expression for 'C' into Equation 1:
4P + 2(18 - P) = 50
Simplify and solve for 'P':
4P + 36 - 2P = 50
2P = 14
P = 7
Now substitute the value of 'P' back into Equation 2 to find 'C':
7 + C = 18
C = 18 - 7
C = 11
Therefore, there are 7 pigs and 11 chickens.
Method 2: Elimination
------------------------
Multiply Equation 2 by 2 to match the coefficient of 'C' with Equation 1:
2P + 2C = 36 (Equation 3)
Subtract Equation 3 from Equation 1:
4P + 2C = 50
- (2P + 2C = 36)
-----------------------
2P = 14
Solve for 'P':
2P = 14
P = 7
Substitute the value of 'P' back into Equation 2 to find 'C':
7 + C = 18
C = 18 - 7
C = 11
Therefore, there are 7 pigs and 11 chickens.