JMC 2009 Q25
25. In Miss Quaffley’s class, one third of the pupils bring a teddy bear to school. Last term, each boy took 12 books out of the library, each girl took 17 books and each teddy bear took 9 books. In total, 305 books were taken out. How many girls are there in Miss Quaffley’s class?
- A 4
- B 7
- C 10
- D 13
- E 16
Junior Mathematical Challenge 2009, Question 25. © UK Mathematics Trust. Original paper on ukmt.org.uk
Answer: B 7
Let the number of boys in Miss Quaffley's class be \(b\) and the number of girls be \(g\). Then the number of teddy bears is \(\tfrac{1}{3}(b + g)\). Also, in total, the boys took out \(12b\) library books last term and the girls took out \(17g\) books. The total number of books taken out by the bears was \(9 \times \tfrac{1}{3}(b + g)\) that is \(3(b + g)\).
So \(12b + 17g + 3(b + g) = 305\), that is \(15b + 20g = 305\), that is \(3b + 4g = 61\).
Clearly, \(b\) and \(g\) are positive integers. The positive integer solutions of the equation \(3b + 4g = 61\) are \(b = 3, g = 13\); \(b = 7, g = 10\); \(b = 11, g = 7\); \(b = 15, g = 4\); \(b = 19, g = 1\).
However, there is one further condition: the number of teddy bears, that is \(\tfrac{1}{3}(b + g)\), is also a positive integer and of the five pairs of solutions above, this condition is satisfied only by \(b = 11, g = 7\).
Check: the 11 boys take out 132 books, the 7 girls take out 119 books and the 6 teddy bears take out 54 books, giving a total of 305 books.
(The equation \(3b + 4g = 61\) in which \(b\) and \(g\) both represent positive integers is an example of a Diophantine equation.)
Solution © UK Mathematics Trust, from the JMC 2009 solutions.