If everyone divides 3 pieces and there are 59 pieces left, there are 3X+59 toys.
If everyone gets five toys and the last child gets less than five toys, then
0 & lt(3X+59)-5(X- 1)& lt; five
0 & lt64-2X & lt; five
64 >; 2X & gt59
32 >; X & gt29.5
So X=30 or X=3 1.
When X=30, the total number of toys is 3 * 30+59 =149;
When X=3 1, the total number of toys is 3*3 1+59= 152.
There are 30 children in this kindergarten, 149 toys. Or there are 3 1 child, 152 toys.