Sub topic 14
Two unknowns, two equations
This chapter assumes you can solve a linear equation in one variable, translate phrases such as "3 more than twice a number" into algebra, and work with percents and fractions. It covers problems with two unknowns and how to set up and solve the two equations they need.
When one variable is not enough
Some problems give two unknown quantities and two separate facts about them. You can sometimes squeeze such a problem into a single variable, as in the Maria and Ben example, where Maria's age was written as 2b + 3. That works when one fact defines one unknown in terms of the other. When both facts relate the unknowns symmetrically, it is cleaner to define two variables and write two equations.
The rule of thumb is simple. You need as many independent equations as you have unknowns. Two unknowns need two equations, and each equation must come from a different fact in the problem.
The setup routine
- Name the two unknowns with letters that suggest their meaning, such as a for adult tickets and c for child tickets.
- Write down the units of each unknown.
- Find the two facts. Usually one is about a count or total, and the other is about a value, a cost, or a comparison.
- Write one equation per fact.
- Solve, check against both facts, and answer the question asked.
The question often asks for something other than a single variable, such as the total, the difference, or the value of x + y. Read the last sentence again before you finish.
Two ways to solve
Substitution
Solve one equation for one variable, then substitute into the other. Use it when one equation already has a variable with coefficient 1, such as x = 2y + 3.
Elimination
Add or subtract the equations so one variable cancels. Use it when both equations are in the form ax + by = c. Multiply an equation by a constant first if the coefficients do not match.
The next example uses both methods on the same problem.
# Problem: 3 notebooks and 2 pens cost $13. 2 notebooks and 5 pens cost $16.
# Find the cost of one notebook (n) and one pen (p).
# 3n + 2p = 13
# 2n + 5p = 16
from fractions import Fraction
# Elimination: multiply the first equation by 2 and the second by 3
# 6n + 4p = 26
# 6n + 15p = 48
# Subtract: 11p = 22, so p = 2
p = Fraction(48 - 26, 15 - 4)
# Substitute into 3n + 2p = 13
n = (13 - 2 * p) / 3
print("pen =", p)
print("notebook =", n)
print("check 1:", 3 * n + 2 * p)
print("check 2:", 2 * n + 5 * p)The output shows a pen costs 2 and a notebook costs 3. Both checks return the stated totals, 13 and 16.
A common GRE shortcut: do not solve for everything
GRE questions often ask for a combination such as x + y or x − y. Sometimes you can get that directly by adding or subtracting the two equations.
Suppose 4x + 3y = 29 and 2x + 5y = 27, and the question asks for x + y. Add the equations: 6x + 8y = 56. That is not a multiple of x + y, so this pair does not give a shortcut. Compare with 4x + 3y = 29 and 2x + 5y = 19. Adding gives 6x + 8y = 48, which is still not x + y. Shortcuts only work when the coefficients line up, for example 3x + 2y = 17 and 2x + 3y = 13. Adding gives 5x + 5y = 30, so x + y = 6 with no further solving.
Check whether adding or subtracting produces equal coefficients before you start a full solution. If it does, you save time. If not, solve normally.
Worked example: counts and values
A theater sells adult tickets at $12 and child tickets at $8. It sold 50 tickets and collected $520. How many child tickets were sold?
Let a be the number of adult tickets and c the number of child tickets.
- Count fact: a + c = 50
- Money fact: 12a + 8c = 520
Substitute a = 50 − c into the money equation:
12(50 − c) + 8c = 520 600 − 12c + 8c = 520 −4c = −80 c = 20
Then a = 30. Check: 30 + 20 = 50, and 12(30) + 8(20) = 360 + 160 = 520. The question asks for child tickets, so the answer is 20.
Notice that the two equations measure different things. The first counts tickets and the second adds dollars. Never mix those units in one equation.
Worked example: a comparison fact
The sum of two numbers is 40, and one number is 6 more than the other. Find the larger number.
Let x be the larger and y the smaller.
- x + y = 40
- x − y = 6
Add the equations: 2x = 46, so x = 23. Then y = 17. The larger number is 23.
Here the "6 more than" phrase is a subtraction on the other side: the larger number minus the smaller is 6. Writing y − x = 6 reverses the order and gives a negative result, which you would catch only if you checked against the sentence.
How the equations relate on a graph
Each linear equation is a line. The solution is the point where the lines cross. This explains the cases where a system does not give a single answer.
| Situation | What the lines do | Number of solutions |
|---|---|---|
| Different slopes | Cross once | One solution |
| Same slope, different intercepts | Parallel | No solution |
| Same line | Coincide | Infinitely many solutions |
For example, x + y = 5 and 2x + 2y = 10 are the same line, so they do not pin down x and y. The second fact adds nothing. GRE problems that look like two equations but are really one are a common trap in Quantitative Comparison questions, where "cannot be determined" is a possible answer.
Common errors
- Writing two equations from the same fact. If the second equation is a multiple of the first, you still have one equation.
- Mixing units, such as adding a count to a dollar amount.
- Reversing a comparison, such as writing "x is 6 more than y" as y = x + 6.
- Solving correctly but answering with the wrong quantity, for example giving the number of adult tickets when the question asks about child tickets.
- Dropping a negative sign while subtracting equations. Write the subtraction out line by line.
- Forgetting that a percent or ratio fact is also an equation. "The ratio of x to y is 3 to 4" becomes 4x = 3y.
Percent facts inside a system
Percent statements often supply one of the two equations. A store sells shirts and hats. It sold 80 items in total. Shirts were 25% of the items. That statement could be written directly as a single-variable fact, but when the percent is of a different base, you need two variables.
Example: Of the 90 employees, the number of managers plus the number of engineers is 90, and engineers are 4 times as many as managers. Let m be managers and e be engineers.
- m + e = 90
- e = 4m
Substituting gives 5m = 90, so m = 18 and e = 72.
Checking your answer
Always check in the original sentences, not in your own equations. If your equations contain a mistake, plugging into them will confirm the mistake. Plug the solution into the words of the problem and confirm each stated fact holds.
Exercise
A parking garage charges $3 per car and $5 per truck. On one day it parked 120 vehicles and collected $480. How many trucks were parked?
Show answer
Let c be cars and t be trucks. Then c + t = 120 and 3c + 5t = 480. Substitute c = 120 − t: 3(120 − t) + 5t = 480, so 360 + 2t = 480, giving t = 60. Check: c = 60, and 3(60) + 5(60) = 480. The answer is 60 trucks.
Exercise
If 3x + 2y = 17 and 2x + 3y = 13, what is x + y?
Show answer
Add the equations: 5x + 5y = 30. Divide by 5 to get x + y = 6. There is no need to find x and y separately (they are x = 5 and y = 1, which gives 3(5) + 2(1) = 17 and 2(5) + 3(1) = 13, so the sum would be 6 only if both were right; here x + y = 6 holds).
Exercise
The sum of two numbers is 50. Three times the smaller number equals the larger number minus 10. Find the two numbers.
Show answer
Let s be the smaller and L the larger. Then s + L = 50 and 3s = L − 10. Substitute L = 3s + 10: s + 3s + 10 = 50, so s = 10 and L = 40. Check: 10 + 40 = 50 and 3(10) = 30 = 40 − 10.