ok so since she makes groups of 5 an no left over, the number is divisble by 5
means that it ends with 5 or 0
possible ones are
5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95
groups of 2, will have 1 jelly bean left over
it is not divisble by 2, means it doesn't end with 0 (ending with 0 means it is divisible by 10, and 10 is divisible by 2)
5,15,25,35,45,55,65,75,85,95
groups of 3
not divisble by 3 (a hack to test, is that you add the digits and if the sum is divisble by 3, then the number is divisble), the list below is eliminated numbers divisble by 3
5,25,35,55,65,85,95
if makes group of 2 will have exactly 1 left over
5/3 has remainder of 2, eliminate
25 works so far (2*12=24,3*8=24,4*6=24)
35/4 has remainder of 3, eliminate
55/4 has remainder of 3, eliminate
65/3 has remainder of 2, eliminate
85 works
95/3 has remainder of 2,eliminate
the ones that work are 25 aand 85
she could have 25 or 85 jelly beans