Cayley 2017 Q3
3. Peaches spends exactly £3.92 on some fruit, choosing from apples costing 20p each and pears costing 28p each.
How many of each type of fruit might she have bought?
Cayley Olympiad 2017, Question 3. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: 0 apples and 14 pears, 7 apples and 9 pears, or 14 apples and 4 pears
First we should try to translate this word problem into algebra. Let \(a\) be the number of apples and \(p\) the number of pears, then what we have is that \(20a + 28p = 392\).
All these numbers are divisible by 4, so we may divide each term by 4 to obtain
\(5a + 7p = 98\).
Now 98 is a multiple of 7, and \(7p\) is always a multiple of 7, so \(5a\) is also a multiple of 7. This means that \(a\) itself is a multiple of 7.
So we can have \(a = 0\) (giving \(p = 14\)), or \(a = 7\) (giving \(p = 9\)), or \(a = 14\) (giving \(p = 4\)). We can't take \(a\) to be a higher multiple of 7, such as 21 or more, because then \(5a \geqslant 105\), so that \(20a \geqslant 240\), which means that Peaches would be spending more on apples than she spends altogether.
Hence the numbers of each type of fruit that Peaches might have bought are shown in the following table.
| Apples | Pears |
| 0 | 14 |
| 7 | 9 |
| 14 | 4 |
Solution © UK Mathematics Trust, from the Cayley Olympiad 2017 solutions.