Grade 5 · Algebra · Cambridge Primary Stage 5
Letters, coefficients, like terms
Input → operation → output
Replace letters with numbers
Solve x + 7 = 12
Area = length × width
In algebra, we use letters to represent unknown numbers. This lets us write rules and patterns in a short way.
A function machine takes an input, applies an operation, and gives an output.
Substitution means replacing the letter in an expression with a number and calculating the result.
An equation has an equals sign. To solve it, find the value of the unknown letter.
Formulae are rules written using letters. We use them in maths and science all the time.
Enter an input and two operations to see the output step by step.
Enter values for a, b, c to solve ax + b = c step by step.
Collect like terms. Enter the coefficient of the simplified expression.
1. 3a + 5a = ?a
2. 7b − 3b = ?b
3. 4c + 6c − 2c = ?c
4. 9x − 4x = ?x
5. 2m + 8m + m = ?m
6. 10n − 3n − 2n = ?n
7. 5p + 4p − 7p = ?p
8. 6q + q − 3q = ?q
9. 12r − 5r + 2r = ?r
10. 3s + 3s + 3s = ?s
Find the output of each function machine.
1. Input 5 → × 3 → Output ?
2. Input 8 → + 6 → Output ?
3. Input 4 → × 2 → + 1 → Output ?
4. Input 7 → × 3 → + 4 → Output ?
5. Input 9 → − 3 → × 2 → Output ?
6. Input 12 → ÷ 4 → + 5 → Output ?
7. Input 6 → × 5 → − 8 → Output ?
8. Input 10 → ÷ 2 → × 3 → Output ?
9. Input 3 → × 4 → + 7 → Output ?
10. Input 20 → − 5 → ÷ 3 → Output ?
Evaluate each expression for the given value.
1. If a = 4, find 3a + 2
2. If b = 6, find 4b − 5
3. If x = 3, find 5x + 1
4. If y = 7, find 2y − 3
5. If n = 5, find n² (n × n)
6. If m = 8, find 3m − 10
7. If t = 2, find 6t + 7
8. If k = 9, find k + 15
9. If p = 4, find 4p − 9
10. If w = 10, find 2w + 3w (= 5w)
Solve each equation. Find the value of the unknown.
1. x + 7 = 12. Find x.
2. y − 4 = 9. Find y.
3. 2m = 14. Find m.
4. n ÷ 3 = 5. Find n.
5. 2x − 3 = 9. Find x.
6. 3a + 1 = 16. Find a.
7. 5b − 2 = 23. Find b.
8. 4k + 7 = 35. Find k.
9. t + 13 = 30. Find t.
10. 6p = 54. Find p.
Substitute into the formula to find the answer.
1. Area = l × w. Length = 8, width = 5. Find area.
2. Perimeter = 2(l + w). l = 9, w = 4. Find perimeter.
3. Area = l × w. l = 12, w = 7. Find area.
4. Perimeter = 2(l + w). l = 15, w = 6. Find perimeter.
5. Speed = distance ÷ time. Distance = 60, time = 4. Find speed.
6. Cost = price × quantity. Price = 3, quantity = 12. Find cost.
7. Area = l × w. l = 6, w = 6. Find area.
8. Perimeter of square = 4 × side. Side = 9. Find perimeter.
9. V = l × w × h (volume). l=4, w=3, h=5. Find V.
10. P = 2l + 2w. l = 11, w = 8. Find P.
1. 4a + 7a = ?a
2. Input 5 → × 4 → − 3 → Output?
3. If x = 6, find 3x + 1
4. Solve: y + 9 = 20. Find y.
5. Area = l × w. l = 10, w = 4. Area?
6. 8b − 3b = ?b
7. Input 3 → × 5 → + 2 → Output?
8. If n = 7, find 4n − 6
9. Solve: 3m = 24. Find m.
10. Perimeter = 2(l + w). l = 8, w = 5. Perimeter?
11. 6c + c − 2c = ?c
12. Input 9 → ÷ 3 → × 4 → Output?
13. If t = 4, find t² + 1 (4×4+1=?)
14. Solve: 2x + 5 = 17. Find x.
15. V = l × w × h. l=5, w=4, h=3. V?
16. 5p + 2p + p = ?p
17. Input 6 → × 6 → − 10 → Output?
18. If a = 3, find 7a + a (= 8a)
19. Solve: 4k − 1 = 15. Find k.
20. Perimeter of square = 4 × side. Side = 7. Perimeter?
1. Solve: 3x + 7 = 28. Find x.
2. Reverse function machine: output is 29, operations were ×4 then +1. What was the input?
3. A rectangle has area 60 cm² and width 5 cm. Find the length.
4. If y = 3, find 4y² − 5 (= 4×9 − 5)
5. Form and solve: "I think of a number, multiply by 3, then subtract 8. The answer is 19." Find the number.
6. Simplify 3a + 5b + 4a − 2b. What is the coefficient of a in the simplified expression?
7. A rectangle has perimeter 36 cm. The width is 7 cm. Find the length.
8. Solve: 5x + 3 = 3x + 11. Find x.