Hi Rosala,
When ever you get a difficult question you try to think of a similar style question that is much easier.
If you can do the easy one then you can use the same method and get the answer to the hard one.
Say there are 5 children in the class. Then each child would donate 5 rupees.
That would be a total of 5+5+5+5+5=25 rupees OR 5^2 rupees.
NOW in your class you do not know how many students there are so just let there be N students.
Can you set up the equation and solve it now Rosala.
If you can't I will do more but it would be really good if you could finish it on your own. 