John loves fruits. He eats one apple, banana or pear literally every hour.
John came to fruit shop to buy some fruits. He has m coins that he is going to spend to buy as many fruits as…