Solve Farm Animal Problems with Systems of Equations

Systems of Equations 9th-10th Grade
Problem
Eloise has a farm that raises chicken and sheep. Altogether there are 1200 animals on the farm. If the total number of legs from all the animals is 4000, calculate how many of each type of animal there is on the farm.
Eloise has a farm that raises chicken and sheep. Altogether there are 1200 animals on the farm. If the totalnumber of...

What This Problem Teaches

  • Setting up systems of equations from word problems with multiple constraints
  • Translating "legs per animal" information into algebraic expressions
  • Solving two-variable systems using substitution method
  • Recognizing the classic "counting with different attributes" problem structure
  • Verifying solutions by checking both original constraints

Solution: Method 1 — The Substitution Approach

This is a classic system of equations problem where we have two unknowns and two pieces of information. Let's organize what we know and set up our variables systematically.

Step 1 — Define the variables

Let c = number of chickens and s = number of sheep on the farm.

Step 2 — Set up the first equation (total animals)

We know there are 1200 animals total, so:

c + s = 1200

Step 3 — Set up the second equation (total legs)

Chickens have 2 legs each, sheep have 4 legs each, and there are 4000 legs total:

2c + 4s = 4000

Step 4 — Solve using substitution

From the first equation, we can express c in terms of s:

c = 1200 - s

Substitute this into the second equation:

2(1200 - s) + 4s = 4000

Step 5 — Simplify and solve for s

Expand the left side:

2400 - 2s + 4s = 4000

Combine like terms:

2400 + 2s = 4000

Subtract 2400 from both sides:

2s = 1600

Divide by 2:

s = 800

Step 6 — Find the number of chickens

Substitute back into our first equation:

c = 1200 - 800 = 400

Solution: Method 2 — The "All Chickens" Thought Experiment

Sometimes it's easier to imagine an extreme case and then adjust. This method uses logical reasoning instead of formal algebra.

Step 1 — Imagine all animals are chickens

If all 1200 animals were chickens, they would have:

1200 × 2 = 2400 legs

Step 2 — Find the "extra" legs

But we actually have 4000 legs, so we need:

4000 - 2400 = 1600 extra legs

Step 3 — Convert chickens to sheep

Each time we replace a chicken with a sheep, we gain 2 legs (from 2 to 4). So the number of sheep needed is:

1600 ÷ 2 = 800 sheep

Step 4 — Find the remaining chickens

If 800 animals are sheep, then the remaining animals are chickens:

1200 - 800 = 400 chickens

This method often feels more intuitive because it mirrors how we might think about the problem in real life.

The Answer: There are 400 chickens and 800 sheep on Eloise's farm.

Verification

Let's check our answer against both original constraints:

Check total animals:

400 + 800 = 1200 ✓

Check total legs:

400 × 2 + 800 × 4 = 800 + 3200 = 4000 ✓

Both checks work perfectly, confirming our solution is correct.

Common Pitfalls

Mixing up which animal has how many legs

Some students write 4c + 2s = 4000, giving chickens 4 legs and sheep 2 legs. Always double-check: chickens are birds (2 legs), sheep are mammals (4 legs). A quick mental check helps: more legs per animal means fewer of that animal type needed.

Forgetting to substitute back

After finding s = 800, some students stop there and forget to find the number of chickens. Always solve for both variables - the problem asks for "how many of each type."

Setting up only one equation

Writing just c + s = 1200 and trying to solve. You need both pieces of information (total animals AND total legs) to create two equations for two unknowns.

The Pattern Behind This

This problem belongs to the family of "counting with attributes" problems. The general structure is:

Objects of Type A + Objects of Type B = Total Objects
(Attribute per A) × A + (Attribute per B) × B = Total Attribute

You'll see this pattern in:

  • Coin problems: pennies + nickels = total coins; 1×pennies + 5×nickels = total value
  • Ticket problems: adult + child = total tickets; price×adult + price×child = total revenue
  • Vehicle problems: cars + trucks = total vehicles; 4×cars + 18×trucks = total wheels

The key insight is that you need two different ways of counting the same collection - once by quantity, once by some attribute.

Why This Problem Matters

Farm animal problems aren't just academic exercises - they teach the same mathematical thinking used in:

Manufacturing: A factory produces small bolts (using 2 minutes each) and large bolts (using 5 minutes each). With 1000 total bolts produced in 3200 minutes, how many of each size were made?

Nutrition planning: A meal plan combines foods with different protein contents per serving to reach specific totals for both servings and protein grams.

Resource allocation: Project managers assign junior staff (20 hours per task) and senior staff (35 hours per task) to complete a fixed number of tasks within a total hour budget.

The mathematical structure is identical - you're always balancing two constraints simultaneously.

What If?

Test your understanding with these variations. Each problem uses the same core method but adds a twist.

1
Different Farm Size
Marcus has a smaller farm with only 150 animals total. His chickens and sheep have 520 legs combined. How many chickens and sheep does Marcus have?
Step 1 — Set up the system

Let c = chickens and s = sheep. We have: c + s = 150 and 2c + 4s = 520

Step 2 — Use substitution

From the first equation: c = 150 - s

Step 3 — Substitute and solve

2(150 - s) + 4s = 520300 - 2s + 4s = 520300 + 2s = 520

Step 4 — Solve for sheep

2s = 220s = 110

Step 5 — Find chickens

c = 150 - 110 = 40

Step 6 — Verify

Check: 40 + 110 = 150 ✓ and 40×2 + 110×4 = 80 + 440 = 520 ✓

Answer: 40 chickens and 110 sheep

2
Adding Cows
A farm has chickens, sheep, and cows. There are 200 animals total with 720 legs. The number of chickens equals the number of sheep. How many of each animal are there? (Cows have 4 legs each)
Step 1 — Define variables

Let c = chickens = sheep and w = cows (since chickens equal sheep)

Step 2 — Set up equations

Animals: c + c + w = 2002c + w = 200

Legs: 2c + 4c + 4w = 7206c + 4w = 720

Step 3 — Solve using substitution

From first equation: w = 200 - 2c

Substitute: 6c + 4(200 - 2c) = 720

Step 4 — Simplify

6c + 800 - 8c = 720-2c = -80c = 40

Step 5 — Find cows

w = 200 - 2(40) = 120

Step 6 — Verify

Animals: 40 + 40 + 120 = 200 ✓

Legs: 40×2 + 40×4 + 120×4 = 80 + 160 + 480 = 720 ✓

Answer: 40 chickens, 40 sheep, 120 cows

3
Given a Ratio
On a farm, the ratio of chickens to sheep is 2:3. There are 300 animals total. How many legs do all the animals have combined?
Step 1 — Use ratio to define variables

If the ratio is 2:3, then chickens = 2x and sheep = 3x for some value x

Step 2 — Set up total animals equation

2x + 3x = 3005x = 300x = 60

Step 3 — Find number of each animal

Chickens = 2×60 = 120

Sheep = 3×60 = 180

Step 4 — Calculate total legs

Chicken legs: 120 × 2 = 240

Sheep legs: 180 × 4 = 720

Total legs: 240 + 720 = 960

Step 5 — Verify

Check ratio: 120:180 = 2:3 ✓

Check total: 120 + 180 = 300 ✓

Answer: 960 legs total

4
Reverse Problem
A farm has 600 chickens and 800 sheep. After a year, the total number of animals increased to 1500, but the total legs increased to only 5600. Some chickens were replaced by sheep. How many chickens are there now?
Step 1 — Set up current situation

Let c = current chickens and s = current sheep

We know: c + s = 1500 and 2c + 4s = 5600

Step 2 — Solve the system

From first equation: c = 1500 - s

Substitute: 2(1500 - s) + 4s = 5600

Step 3 — Simplify

3000 - 2s + 4s = 56003000 + 2s = 56002s = 2600s = 1300

Step 4 — Find current chickens

c = 1500 - 1300 = 200

Step 5 — Verify and interpret

Check: 200 + 1300 = 1500 ✓ and 200×2 + 1300×4 = 400 + 5200 = 5600 ✓

Originally 600 chickens, now 200 chickens → 400 chickens were replaced by sheep

Answer: 200 chickens remain

Frequently Asked Questions

Create two equations: one for total animals and one for total legs. If you have chickens (2 legs) and sheep (4 legs), write c + s = total animals and 2c + 4s = total legs. In this problem, we get c + s = 1200 and 2c + 4s = 4000, which we solve using substitution or elimination.
Use the "all one type" method: assume all animals are chickens (2400 total legs), find the difference from actual legs (4000 - 2400 = 1600), then divide by the leg difference per animal (1600 ÷ 2 = 800 sheep). Here, 800 animals must be sheep and 400 must be chickens.
Because chickens have 2 legs and sheep have 4 legs - a clean 2:1 ratio that makes the arithmetic work out nicely. This creates a classic "Diophantine problem" that dates back to ancient Chinese mathematics, teaching students how different quantities can combine to reach the same total.
NJ
Neven Jurkovic, PhD

Professor of Computer Science, Palo Alto College, Alamo Colleges District, San Antonio, TX

Developer of Algebrator

Contact

This solution was prepared with AI assistance and reviewed by Dr. Jurkovic for mathematical accuracy and pedagogical clarity.

2026-08-08