Find Garden Length & Width: Perimeter & Area System

Geometry 9th-10th Grade
PROBLEM
A farmer has a rectangular garden plot surrounded by 190 ft of fence. If its area is 2100 ft², what is the length and width of the garden?

What This Problem Teaches

  • Setting up systems of equations from geometric constraints
  • Working with perimeter and area formulas simultaneously
  • Solving quadratic equations that arise from real-world contexts
  • Interpreting multiple solutions in geometric problems
  • Connecting algebra to spatial reasoning

Let's Draw It

A farmer has a rectangular garden plot surrounded by 190 ft of fence. If its area is 2100 ft^2, what is the length...

The fence forms the perimeter: 2l + 2w = 190 ft
The garden has area: l × w = 2100 ft²

Solution: Method 1 — System of Equations Approach

Let's define our variables and translate the geometric constraints into algebraic equations.

Step 1 — Define variables and set up equations

Let l = length of the garden (in feet) and w = width of the garden (in feet).

From the problem constraints:

Perimeter: 2l + 2w = 190 Area: l × w = 2100

Step 2 — Simplify the perimeter equation

Divide the perimeter equation by 2:

2l + 2w = 190 l + w = 95

Step 3 — Solve for one variable

From l + w = 95, we can express the width in terms of length:

w = 95 - l

Step 4 — Substitute into the area equation

Replace w with (95 - l) in the area equation:

l × w = 2100 l × (95 - l) = 2100 95l - l² = 2100

Step 5 — Rearrange into standard quadratic form

Move all terms to one side:

95l - l² = 2100 -l² + 95l - 2100 = 0 l² - 95l + 2100 = 0

Step 6 — Solve the quadratic equation

Using the quadratic formula where a = 1, b = -95, c = 2100:

l = (95 ± √(95² - 4(1)(2100))) / 2(1) l = (95 ± √(9025 - 8400)) / 2 l = (95 ± √625) / 2 l = (95 ± 25) / 2

This gives us two solutions:

l = (95 + 25) / 2 = 120 / 2 = 60 l = (95 - 25) / 2 = 70 / 2 = 35

Step 7 — Find the corresponding widths

For each length value, calculate w = 95 - l:

If l = 60, then w = 95 - 60 = 35 If l = 35, then w = 95 - 35 = 60

Solution: Method 2 — Roots and Coefficients Approach

Instead of substitution, we can recognize that length and width are the roots of a quadratic equation.

Step 1 — Identify sum and product

From our constraints, we know:

l + w = 95 (sum of dimensions) l × w = 2100 (product of dimensions)

Step 2 — Construct the quadratic

If two numbers have sum S and product P, they are roots of t² - St + P = 0:

t² - 95t + 2100 = 0

Step 3 — Factor the quadratic

We need two numbers that multiply to 2100 and add to 95. Let's find factors of 2100:

2100 = 4 × 525 = 4 × 25 × 21 = 100 × 21 2100 = 60 × 35

Since 60 + 35 = 95, we have:

t² - 95t + 2100 = (t - 60)(t - 35) = 0

Step 4 — Identify the solutions

The roots are t = 60 and t = 35, giving us the same dimensions: 60 ft and 35 ft.

The garden dimensions are 60 feet by 35 feet
(length and width can be assigned to either dimension)

Verification

Let's confirm our answer satisfies both original constraints.

Check the perimeter:
2l + 2w = 2(60) + 2(35) = 120 + 70 = 190 ft

Check the area:
l × w = 60 × 35 = 2100 ft²

Both constraints are satisfied perfectly.

Watch Out For These

✗ Confusing perimeter with area formulas

Writing l × w = 190 and 2l + 2w = 2100. Remember: perimeter is the distance around (adds lengths), while area is the space inside (multiplies dimensions).

✗ Dropping the factor of 2 in perimeter

Writing l + w = 190 instead of 2l + 2w = 190. A rectangle has TWO lengths and TWO widths in its perimeter.

✗ Thinking there's only one answer

Choosing arbitrarily between 60×35 and 35×60. Both represent the same rectangle—the distinction between "length" and "width" is conventional, not mathematical.

✗ Arithmetic errors in the quadratic formula

Computing √(95² - 4·1·2100) = √(9025 - 8400) = √625 = 25 incorrectly. Double-check that 95² = 9025 and 4×2100 = 8400.

The Pattern Behind This

This problem exemplifies a fundamental pattern in optimization and constraint problems.

General Setup: Given a rectangle with perimeter P and area A, the dimensions are roots of:

t² - (P/2)t + A = 0

The discriminant (P/2)² - 4A tells us whether real solutions exist. For our problem:

Discriminant = (95)² - 4(2100) = 9025 - 8400 = 625 > 0

Since the discriminant is positive and a perfect square, we get two distinct rational solutions. If the discriminant were zero, we'd have a square. If negative, no real rectangle could satisfy both constraints.

Connection to other fields: This same mathematical structure appears in economics (cost-revenue optimization), physics (projectile motion), and engineering (design constraints).

Real Applications

  • Landscaping: Designing gardens, pools, or lawns with fixed budgets for edging or fencing materials
  • Construction: Optimizing room layouts when both floor area and wall perimeter (for baseboards, crown molding) matter
  • Agriculture: Planning crop fields where both planting area and fencing costs must be considered

What If?

1
Different Perimeter

A farmer has 240 ft of fence and wants a rectangular garden with area 3200 ft². What are the dimensions?

Step 1 — Set up equations

Perimeter: 2l + 2w = 240, so l + w = 120
Area: l × w = 3200

Step 2 — Substitute

w = 120 - l, so l(120 - l) = 3200
120l - l² = 3200

Step 3 — Form quadratic

l² - 120l + 3200 = 0

Step 4 — Solve

l = (120 ± √(14400 - 12800))/2 = (120 ± √1600)/2 = (120 ± 40)/2
l = 80 or l = 40

Step 5 — Find dimensions

Dimensions: 80 ft by 40 ft

Verification

Perimeter: 2(80) + 2(40) = 240
Area: 80 × 40 = 3200

2
Against a Wall

The garden is built against a barn wall, so only three sides need fencing. Using 150 ft of fence, the area is still 2100 ft². Find the dimensions.

Step 1 — Set up equations

Only three sides need fence: l + 2w = 150
Area: l × w = 2100

Step 2 — Solve for length

l = 150 - 2w

Step 3 — Substitute

(150 - 2w) × w = 2100
150w - 2w² = 2100

Step 4 — Form quadratic

2w² - 150w + 2100 = 0
w² - 75w + 1050 = 0

Step 5 — Solve

w = (75 ± √(5625 - 4200))/2 = (75 ± √1425)/2
w = (75 ± 5√57)/2
w ≈ 30 or w ≈ 45

Step 6 — Find corresponding lengths

If w = 30, then l = 150 - 60 = 90
If w = 45, then l = 150 - 90 = 60
Dimensions: 90 ft × 30 ft or 60 ft × 45 ft

3
Reverse the Problem

A rectangular garden is 70 ft by 25 ft. How much fencing is needed? If you wanted to double the area while keeping the same shape ratio, what would be the new perimeter?

Step 1 — Current fencing needed

Perimeter = 2l + 2w = 2(70) + 2(25) = 140 + 50 = 190 ft

Step 2 — Current area

Area = 70 × 25 = 1750 ft²

Step 3 — Double the area

New area = 2 × 1750 = 3500 ft²

Step 4 — Keep same shape ratio

Length-to-width ratio = 70/25 = 2.8
If new width = w, then new length = 2.8w

Step 5 — Solve for new dimensions

(2.8w) × w = 3500
2.8w² = 3500
w² = 1250
w = √1250 ≈ 35.36 ft
l = 2.8 × 35.36 ≈ 99 ft

Step 6 — New perimeter

Original fencing: 190 ft
New perimeter: 2(99) + 2(35.36) ≈ 269 ft

4
Maximum Area Challenge

A farmer has exactly 200 ft of fencing and wants to maximize the area of a rectangular garden. What dimensions give the largest possible area, and what is that area?

Step 1 — Set up the constraint

Perimeter constraint: 2l + 2w = 200, so l + w = 100

Step 2 — Express area in terms of one variable

w = 100 - l
Area = l × w = l(100 - l) = 100l - l²

Step 3 — Find the maximum

This is a downward parabola. Maximum occurs at the vertex.
For f(l) = -l² + 100l, the vertex is at l = -b/(2a) = -100/(2(-1)) = 50

Step 4 — Find both dimensions

l = 50 ft
w = 100 - 50 = 50 ft

Step 5 — Calculate maximum area

Maximum Area = 50 × 50 = 2500 ft²

Key insight

The maximum area rectangle is always a square!
Optimal dimensions: 50 ft × 50 ft
Maximum area: 2500 ft²

Frequently Asked Questions

How do you solve geometry problems with both perimeter and area? +
Set up a system of equations where one equation represents the perimeter constraint and the other represents the area constraint. In this problem, 2l + 2w = 190 for perimeter and lw = 2100 for area. Solve by substitution or elimination to find both dimensions.
When do you get two possible answers in rectangle problems? +
Rectangle problems often yield quadratic equations, which can have two solutions. Both solutions are mathematically valid but may represent the same rectangle oriented differently. Here we get dimensions 35 and 60 feet - these are just length and width swapped.
What's the connection between rectangle dimensions and quadratic roots? +
If you know the sum and product of two numbers, those numbers are roots of a quadratic equation. Since l + w = 95 and lw = 2100, the dimensions satisfy t² - 95t + 2100 = 0, where t represents either length or width.
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-01