Roy needs to purchase 100 toffees from three different shops and he has exactly 100 rupees to do that which he must spend entirely. He must buy at least 1 toffee from each shop.

The first shop is selling each toffee at 5 paise, the second is selling at 1 rupee and the third is selling at 5 rupees.

How many toffees should he buy from each shop?

Roy should buy 80 toffees from the first shop, 1 toffee from the second shop and 19 toffees from the third shop