Svetlana Z. answered 03/24/16
Tutor
5.0
(372)
Female Engineer, UC Berkeley PhD, 30+years industry 1700+ hours tutor
There are N jelly beans in each box, X boys and Y girls.
Then the total number of jelly beans the girls received is NY, the total number the boys received is NX. Since N, X and Y are integers, you need do prime factorization of 923 and 1157.
sqrt(923) = 30.38, so one of the factors of 923 is less than 30. It can't be even, it can't end in 5, that leaves:
3,7,9,11,13, 17, 19, 23, 29 (other numbers are not prime)
Quick use of a calculator shows that 923 is divisible by 13. 923 = 13*71
Then N is either 13 or 71. Again, using a calculator shows that 1157/13 = 89, and 1157/71 is not an integer.
So: 923 = 13*71
1157 = 13*89
That means N=13, X = number of boys = 89, Y = number of girls = 71, and the total number of pupils is:
89 + 71 = 160