Grade 8 Mathematics · Strand 2.0 Algebra · Sub-strand 2.2 Linear Equations in Two Unknowns
These are free study notes for Grade 8 learners, written to the KICD curriculum design and taken from our full Grade 8 Mathematics notes. Word problems are where most marks are lost: learners can solve the equations but struggle to form them. Pay special attention to the sections on forming equations and shopping problems.
When two facts involve the same two unknowns, such as the prices of books and pens, we can form two equations and solve them together. In this topic we form linear equations in two unknowns and solve them by substitution and by elimination.
Forming simultaneous equations
Let a book cost b shillings and a pen cost p shillings. Two books and three pens cost Ksh 190: 2b + 3p = 190. One equation has many possible answers, so a second fact is needed: one book and two pens cost Ksh 110, so b + 2p = 110.
Simultaneous equations
Two equations that are true at the same time.

Substitution method
Solve a + b = 12 and a - b = 4
From the first: a = 12 - b.
Substitute: (12 - b) - b = 4, so 12 - 2b = 4, 2b = 8, b = 4.
Then a = 12 - 4 = 8.
Check: 8 + 4 = 12 and 8 - 4 = 4.
Elimination method

Solve 2b + 3p = 190 and b + 2p = 110
Multiply the second by 2: 2b + 4p = 220.
Subtract the first: (2b + 4p) - (2b + 3p) = 220 - 190, so p = 30.
Substitute: b + 60 = 110, so b = 50.
Check: 2 × 50 + 3 × 30 = 190. A book costs Ksh 50 and a pen Ksh 30.
Choosing a method
Use substitution when one letter is already alone (b = 2a + 1); use elimination when coefficients match or are easy to match.
Shopping problems
Rice and sugar
3 kg of rice and 2 kg of sugar cost Ksh 830; 1 kg of rice and 2 kg of sugar cost Ksh 510.
3r + 2s = 830 and r + 2s = 510.
Subtract: 2r = 320, so r = 160. Then 160 + 2s = 510, so s = 175.
Rice costs Ksh 160 per kg and sugar Ksh 175 per kg.
Other real-life problems
Heads and legs
A farm has hens h and goats g: 30 heads and 80 legs.
h + g = 30 and 2h + 4g = 80.
Double the first: 2h + 2g = 60. Subtract: 2g = 20, so g = 10 and h = 20.
Check: 2 × 20 + 4 × 10 = 80.
Solving any word problem
- Choose one letter for each unknown.
- Write one equation for each fact.
- Solve by substitution or elimination.
- Check the answers in both equations and in the story.
Key points to remember
- Two unknowns need two equations (simultaneous equations).
- Substitution: make one letter the subject and put it into the other equation.
- Elimination: match a coefficient, then add or subtract to remove that letter.
- Always check the answers in both equations.
- The solution is where the two lines meet on a graph.
Test yourself: multiple choice
Solve x + y = 20 and x - y = 6.
Show the answer
A: Add: 2x = 26, x = 13; y = 7.
Solve 5a + 2b = 24 and 3a + 2b = 16. What is a?
Show the answer
D: Subtract: 2a = 8, a = 4.
Solve y = 3x - 1 and 2x + 3y = 19. What is x?
Show the answer
C: 2x + 9x - 3 = 19, 11x = 22, x = 2.
A farm has 30 heads and 80 legs of hens and goats. How many goats?
Show the answer
B: h + g = 30, 2h + 4g = 80 gives g = 10.
To eliminate y from 3x + y = 10 and x + 2y = 5, first multiply the first equation by
Show the answer
A: Then both have 2y.
Practice questions
Solve by substitution: y = 2x + 1 and 3x + y = 21. (3 marks)
Show the answer
- 3x + 2x + 1 = 21
- 5x = 20, x = 4
- y = 9
Solve by elimination: 4m + 3n = 26 and 2m - 3n = -2. (3 marks)
Show the answer
- Add: 6m = 24, m = 4
- 16 + 3n = 26, n = 10/3 = 3 1/3
- Check: 8 - 10 = -2
Two adult tickets and three child tickets cost Ksh 700. One adult and one child ticket cost Ksh 300. Find the price of each. (4 marks)
Show the answer
- 2a + 3c = 700; a + c = 300
- 2a + 2c = 600; subtract: c = 100
- a = 200
- Adult Ksh 200, child Ksh 100
The sum of two numbers is 45 and their difference is 11. Find the numbers. (3 marks)
Show the answer
x + y = 45, x - y = 11; 2x = 56, x = 28, y = 17.
This is one topic. Get the whole year. The full Grade 8 Mathematics notes cover every sub-strand of Terms 1, 2 and 3 like this one, with pictures, key points and practice questions with answers, as a printable PDF for KSh 150. Pay with M-Pesa and download at once.
Get the full Grade 8 Mathematics notes · All Grade 8 Mathematics resources · Notes for every grade