Kazicinat T. T.

Grisha has 5000 rubles. In the store, chocolate bunnies are sold at 45 rubles each. To carry the bunnies home, Grisha will have to buy several bags at 30 rubles each. No more than 30 chocolate bunnies can fit in one bag. Grisha bought the maximum possible number of bunnies and enough bags to carry all the bunnies. How much money does Grisha have left?
A full bag of rabbits costs $30+30 \cdot 45=1380$ rubles. Grisha can buy a maximum of 3 full bags, and he will have $5000-3 \cdot 1380=860$ rubles left. With this money, Grisha can buy a fourth (empty) bag and 18 rabbits to put in it. In the end, Grisha will have $860-30-18 \cdot 45=20$ rubles left.

## Answer

20 rubles.