Question 1014017
1) the farmer starts with 3 times 30 = 90 mangoes
2) the farmer pays 3 mangoes at each toll, the farmer takes toll mangoes from 1 bag
3) the toll bag is empty after 10 tolls, the farmer has 2 bags left (30 mangoes in each bag)
4) now the farmer pays 2 mangoes at each toll, the farmer takes two mangoes from 1 bag
5) the toll bag is empty after 15 tolls, the farmer has 1 bag left (30 mangoes)
6) now the farmer pays 1 mangoe at each toll
7) there are 30 - (10 + 15) = 5 tolls left
8) the farmer has (30 - 5) = 25 mangoes remaining to sell