Answer:
Total pencils: 17
Total rulers: 15
Explanation:
"I will buy 15 pencils."
15 * 8p = £1.20
15 pencils
"Then I will buy as many rulers as possible."
£5 - £1.20 = £3.80
£3.80/30p = 12 remainder 20p
12 rulers
"With my change, I will buy more pencils.”
20p/8p = 2 remainder 4 p
2 pencils
Total pencils: 17
Total rulers: 15