Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. Middle School Math
  2. Solving Real-World Problems with Two Linear Equations

8TH GRADE MATHEMATICS • EXPRESSIONS & EQUATIONS

Solving Real-World Problems with Two Linear Equations

Learn how to set up and solve systems of equations—one of the most powerful tools in all of math.

Section 1

Where Did Systems of Equations Come From?

People have been solving problems with two unknowns for thousands of years. Long before algebra looked the way it does in your textbook, ancient mathematicians were figuring out how to share grain, build temples, and divide land. The idea of writing two equations and finding values that make both true at the same time is one of the oldest tricks in mathematics.

~200 BCE
Ancient China
The Chinese text The Nine Chapters on the Mathematical Art described how to solve systems of equations using a method a lot like what we now call elimination. They organized numbers in columns on a counting board—kind of like a spreadsheet made of bamboo sticks.
~250 CE
Diophantus of Alexandria
The Greek mathematician Diophantus wrote Arithmetica, one of the first books to use symbols (instead of only words) to represent unknowns. He solved many problems that boil down to systems of two equations.
~820 CE
Al-Khwarizmi
The Persian scholar Al-Khwarizmi wrote a famous book on solving equations. His name is where we get the word algorithm, and his work laid the foundation for algebra as a formal subject.
1600s–1700s
Europe
René Descartes connected algebra and geometry by inventing the coordinate plane (the x-y grid). This made it possible to see equations as lines and find where they cross.
Today
Modern Applications
Systems of equations are used everywhere—from video-game physics to weather forecasting to figuring out how many tickets a school sold. You're learning a tool that engineers, scientists, and business owners all rely on.

So here's the big question this lesson answers: When a real-world situation has two unknown quantities, how do you write two equations and solve them to find both unknowns?

Section 2

Core Principles & Definitions

Before we start solving, let's make sure the key vocabulary is crystal clear. A linear equation is an equation where the variables (like x and y) are only raised to the first power—no exponents, no square roots, no variables multiplied together. When you graph a linear equation, it always makes a straight line.

A system of equations is a set of two (or more) equations that share the same variables. A solution to the system is a pair of values—one for each variable—that makes both equations true at the same time.

1

Linear Equation

An equation whose graph is a straight line. Example: 2x + 3y = 12. The variables have no exponents other than 1.
2

System of Equations

Two equations with the same two unknowns (usually x and y). You need both equations together to find the answer.
3

Solution of a System

The pair of values (x, y) that satisfies both equations at once. On a graph, it's the point where the two lines cross.
4

Variables & Constraints

Each equation gives you a constraint (a rule). With two unknowns, you need two constraints to pin down both values.
✦ Key Takeaway
Think of it like a treasure map. One clue alone doesn't tell you the exact spot—it only narrows it to a line. But a second clue that crosses the first narrows it to one single point. That's exactly how two equations pin down two unknowns.
Section 3

Seeing the Solution — Graphing Two Lines

When you graph each equation on the same coordinate plane, each equation draws a line. Every point on that line is a pair (x, y) that makes the equation true. The solution to the system is the point where the two lines intersect (cross each other). That point is the only (x, y) pair that satisfies both equations at once.

xy1234567123456x + y = 62x − y = 3(3, 3)The intersection point (3, 3) is the solution to both equations.
The intersection point (3, 3) is the solution to both equations.

In the diagram above, the cyan line represents x + y = 6 and the pink line represents 2x − y = 3. They cross at the gold point (3, 3). Plug those numbers into either equation and they work: 3 + 3 = 6 ✓ and 2(3) − 3 = 3 ✓.

Not every system works out perfectly though. Sometimes the two lines are parallel (they never cross), which means there's no solution. And sometimes the two equations actually describe the same line, which means there are infinitely many solutions. For now, most problems you'll see have exactly one solution—one crossing point.

Section 4

Two Methods for Solving Systems

You've seen that the answer is where two lines meet. But drawing perfect graphs every time is slow and sometimes inaccurate. Algebra gives you two reliable methods to find exact answers: substitution and elimination.

Method 1: Substitution

The idea is simple: solve one equation for one variable, then substitute (plug) that expression into the other equation. This turns two equations with two unknowns into one equation with one unknown—something you already know how to solve!

Substitution Strategy
1. Solve one equation for x or y. 2. Plug that expression into the other equation. 3. Solve → get one value → back-substitute → get both.

Method 2: Elimination (also called "Linear Combination")

With elimination, you add or subtract the two equations so that one variable cancels out. Sometimes you need to multiply one or both equations by a number first so the coefficients (the numbers in front of x or y) match up. Then add the equations and—poof—one variable disappears.

Elimination Strategy
1. Line up both equations (same order of variables). 2. Multiply if needed so one variable has matching coefficients. 3. Add or subtract equations to cancel that variable. 4. Solve → back-substitute → get both values.

Which method should you use? It depends on the problem. If one equation already has a variable by itself (like y = 3x + 1), substitution is quick. If the equations are lined up nicely and the coefficients are easy to match, elimination can be faster.

✦ Key Takeaway
Substitution is like replacing a player on a sports team—you swap one variable with an equivalent expression and keep going. Elimination is like a tug-of-war where you make one side drop out so you can focus on the other side alone.
Section 5

Types of Solutions & Setting Up Real-World Problems

Before we jump into a full worked example, let's look at the three things that can happen when you graph two lines, and how to translate a word problem into a system of equations.

One SolutionNo SolutionInfinitely Many
Three possible outcomes when graphing two linear equations.
SituationWhat You See on the GraphWhat Happens Algebraically
One solutionLines cross at exactly one pointYou find specific values for x and y
No solutionLines are parallel (same slope, different y-intercepts)Variables cancel and you get a false statement like 0 = 5
Infinitely many solutionsLines overlap completely (same line)Variables cancel and you get a true statement like 0 = 0

Translating Words into Equations

Real-world problems don't hand you nice equations. You have to build them from the story. Here's a simple process:

  1. Step 1 — Identify the unknowns. What two quantities are you trying to find? Assign a variable to each one (for example, let x = number of adult tickets and y = number of student tickets).
  2. Step 2 — Find two relationships. Read the problem carefully. There will be two pieces of information that connect your unknowns—like a total count and a total cost.
  3. Step 3 — Write an equation for each relationship. Turn each sentence into an equation using your variables.
  4. Step 4 — Solve the system using substitution or elimination, then check your answer in both original equations.
Section 6

Worked Example: The Concert Ticket Problem

A school sold 200 tickets to a concert. Adult tickets cost $8 each and student tickets cost $5 each. The school collected $1,180 in total. How many of each type of ticket were sold?

The Concert Ticket Problem

Step 1 — Define Your Variables

Let a = number of adult tickets and s = number of student tickets.

Step 2 — Write Two Equations

The total number of tickets is 200: a + s = 200 ← Equation 1. The total money collected is $1,180: 8a + 5s = 1180 ← Equation 2.

Step 3 — Solve Using Substitution

From Equation 1, solve for s: s = 200 − a. Substitute this into Equation 2: 8a + 5(200 − a) = 1180 → 8a + 1000 − 5a = 1180 → 3a + 1000 = 1180 → 3a = 180 → a = 60
a = 60

Step 4 — Find the Other Variable

Plug a = 60 back into s = 200 − a: s = 200 − 60 = 140
s = 140

Step 5 — Check Both Equations

Equation 1: 60 + 140 = 200 ✓. Equation 2: 8(60) + 5(140) = 480 + 700 = 1,180 ✓.

Answer

The school sold 60 adult tickets and 140 student tickets.
Section 7

Substitution vs. Elimination — When to Use Each

Both methods always give you the same answer. The difference is about convenience. Here's a side-by-side comparison to help you decide which one to reach for first.

FeatureSubstitutionElimination
Best when…One variable is already isolated (e.g., y = 3x + 1)Both equations are in standard form and coefficients are easy to match
Key moveReplace a variable with an expression from the other equationAdd or subtract equations to cancel a variable
Risk of mistakesDistributing negatives incorrectly during substitutionForgetting to multiply every term when scaling an equation
Works for all systems?YesYes
Speed (on average)A bit faster when a variable is already aloneA bit faster when coefficients line up nicely
✦ Key Takeaway
Choosing between substitution and elimination is like choosing between a screwdriver and a wrench—both fix the bolt, but one might fit the shape better. Look at the equations you're given. If a variable is already by itself, grab substitution. If the coefficients are begging to cancel, go with elimination. With practice, you'll spot the easier path right away.
Section 8

Where Does This Lead?

Solving a system of two linear equations is just the beginning. Once you're comfortable with two unknowns, math opens up to three or more. In high school and beyond, you'll encounter systems with three equations and three unknowns, and eventually tools like matrices that let computers solve thousands of equations in seconds.

What You're Learning NowWhere It Goes Next
2 equations, 2 unknowns (x, y)3 equations, 3 unknowns (x, y, z) — Algebra 2
Graphing lines on a planeGraphing planes in 3D space — Precalculus
Substitution & elimination by handMatrix methods & technology-assisted solving — Linear Algebra
Systems with exact solutionsSystems of inequalities (shaded regions) — Algebra 1/2

Even in fields you might not expect—like biology, economics, and computer graphics—systems of equations are used every day. When you play a video game, the game engine is solving huge systems of equations to figure out where objects should appear on screen. The skill you're building right now is the foundation for all of that.

Section 9

Practice Problems

PROBLEM 1 — CONCEPTUAL
Explain in your own words: why do you need two equations to find two unknown values? What would happen if you only had one equation?
PROBLEM 2 — BASIC CALCULATION
Solve the system by substitution: y = 2x + 1 and x + y = 10
PROBLEM 3 — INTERMEDIATE
Solve using elimination: 3x + 2y = 16 and 3x − 2y = 8
PROBLEM 4 — APPLIED / WORD PROBLEM
At a bake sale, muffins cost $2 each and cookies cost $1 each. Maria bought 9 items and spent a total of $13. How many muffins and how many cookies did she buy?
PROBLEM 5 — CHALLENGE
A boat travels 30 miles downstream (with the current) in 2 hours, and 30 miles upstream (against the current) in 3 hours. Find the speed of the boat in still water and the speed of the current. (Hint: when going downstream, the current helps; when going upstream, the current slows you down.)
Summary

Lesson Recap

A system of two linear equations in two variables is a pair of equations that share the same unknowns. The solution is the ordered pair (x, y) that makes both equations true—graphically, it's the intersection point of the two lines. To set up a system from a word problem, you identify two unknowns, find two relationships from the information given, and write one equation for each relationship.

You can solve the system by substitution (isolate one variable and plug it into the other equation) or by elimination (add or subtract equations to cancel one variable). Always check your answer by plugging the values back into both original equations. A system can have one solution (lines cross), no solution (parallel lines), or infinitely many solutions (same line). Mastering this skill prepares you for more advanced algebra, real-world modeling, and eventually the powerful techniques of linear algebra.

Varsity Tutors • 8th Grade Mathematics (Common Core) • Systems of Two Linear Equations