How to Solve Word Problems by Finding Two-Variable Equations?

A bike rental costs $4 to unlock the bike and $3 for every hour you ride. The total depends on how long you rent it. Writing an equation with two variables lets you describe that relationship for any number of hours, then find a missing cost or rental time.
What is an equation with two variables?
A variable is a letter that stands for a number. In a word problem, define each variable with its units. For a bike rental, let x represent hours and y represent the total cost in dollars.
This equation contains two variables. Whenever you substitute a value for x, the equation gives the related value of y. If x = 0, the cost is $4; if x = 1, the cost is $7. A single equation may have many solutions. A solution is a pair of values that makes the equation true.
The input, such as the number of rental hours, is often called the independent variable (x). The related output, such as the total rental cost, is the dependent variable (y).
Write a linear equation from a word problem
Many situations have a fixed starting amount plus a constant amount added or subtracted per unit. They can be described with a linear equation in the form y = mx + b.
- Define x and y, including their units.
- Find the rate per unit, m. A decrease is represented by a negative rate.
- Find the initial amount, b: the value of y when x is zero.
- Write y = mx + b, and check whether the equation fits the story.
The rate is sometimes called the slope. The starting amount is the y-intercept. A rate of $2 per hour and a $5 fixed charge gives y = 2x + 5, not y = 5x + 2.
A jar starts with 18 coins and gains 4 coins each day. Write an equation.
Let x be days and y be the number of coins. The equation is y = 4x + 18.
Use the equation to find a missing value
If x is given, substitute it into the expression and evaluate using the order of operations. If y is given, substitute that value and solve for x by undoing the addition or subtraction of the starting value, then undoing multiplication by the rate, provided the rate is not zero. If the rate m is zero, the equation becomes y = b. An output equal to b is possible for every allowed input; a different output is impossible.
Check your result by substituting both numbers into the original equation. In a real problem, also check units and restrictions: you cannot sell negative tickets, and you may need a whole number of items.
When two facts give two equations
Some problems have two unknown counts that are connected by two separate facts. Suppose a total of nine tickets includes adult tickets costing $8 and child tickets costing $5. The total revenue is $60. Let a equal the number of adults and c equal the number of children.
The first equation gives c = 9 − a. Substitute this into the cost equation and solve.
8a + 45 − 5a = 60
3a + 45 = 60
3a = 15; a = 5
Check both facts: 5 + 4 = 9 tickets, and 8(5) + 5(4) = 40 + 20 = 60 dollars. Unlike a single equation with two variables, these two independent equations give a unique pair of values.
Examples
Example 1: Write an equation for a fixed cost plus a rate
A delivery service charges $6 plus $2 per package. Let x be packages and y be total dollars. The fixed fee is 6 and the rate is 2.
Example 2: Find the total from a known input
A worker starts with $25 and saves $9 each week. After four weeks, substitute x = 4 into y = 9x + 25.
Example 3: Find the input from a known total
A rental shop charges $8 plus $5 per day. The bill is $33. Set 33 = 5x + 8, subtract 8, then divide by 5.
Example 4: Write an equation for a decreasing quantity
A tank starts with 48 liters and drains 3 liters per minute. Let x be minutes and y be liters remaining. Each minute reduces the amount by three. The tank reaches zero when 48 ÷ 3 = 16 minutes. The model applies from 0 through 16 minutes; it does not describe negative water amounts.
Example 5: Use two equations to solve for two counts
A stand sells 12 cups of juice and tea. Juice costs $4, tea $2, and total sales are $38. Let j be juice cups and t be tea cups; j + t = 12 and 4j + 2t = 38. Substitute t = 12 − j to get 2j + 24 = 38.
Video lessons
Linear word problem equation calculator
Enter the rate m, the starting amount b, and either the known input x or the known output y. Use signed integers or decimals. The calculator builds y = mx + b and solves for the missing variable using exact fractions.
Exercises
Identify the variables, the rate, and the starting amount before solving each new story. For ticket problems, check both the total count and the total cost.
Frequently asked questions
Does one equation with two variables have one solution?
Usually not. A linear relationship with two variables generally allows many ordered pairs. Additional facts or constraints may narrow the possible values.
What is the difference between the rate and starting value?
The rate gives the change in output per unit of input. The starting value is the output before any input units are counted.
How do I know if I need two equations?
If two unknown quantities need to be determined separately and one equation leaves many possible pairs, look for a second independent fact that gives another equation.





What people say about "Two-Variable Word Problems: Set Up Two Equations, Solve"?
No one replied yet.