# Martin Management

**Logic**Level 5

\(\color{Green}{Marloutte}\) is a clever trader , very smart and intelligent. Once, he ordered some apples for trading. The contractor sent his merchant to deliver the apples.

The contractor lived in \(\color{Blue}{Mersaills}\), while \(\color{Green}{Marloutte}\) lived in \(\color {LimeGreen}{Mosaques}\). The distance between two cities was \(16000\) decametres or \(160\) kilometers.

The name of the merchant was \(\color{Red}{Martin}\). His horse, \(\color{Purple}{Mineraques}\), could carry a maximum of \(q\) apples at a time. \(\color{Red}{Martin}\) was a greedy man, when he was transporting the apples, he ate one apple for one decameter (quiet an eating machine). But being equally shrewd, he in that way carried the maximum number of apples as he could.

When he reached \(\color {LimeGreen}{Mosaques}\) , he gave the remaining apples to \(\color{Green}{Marloutte}\). \(\color{Green}{Marloutte}\) knew that \(\color{Red}{Martin}\) had eaten some apples as it was obvious. On asking, \(\color{Red}{Martin}\) told him that for every decametre he travelled he used to eat an apple as he was so greedy that on seeing the apples he could not control himself. He told \(\color{Green}{Marloutte}\) that the total number of the apples he carried from Mersaills was \(5q\), and he now is left with only \(890\) apples.

\(\color{Green}{Marloutte}\) soon figured out how much apples he began with such that the maximum number of apples he is left with is \(890\). Can you figure out how many apples \(\color{Red}{Martin}\) began with such that if he eats one apple for every decameter he travels then the maximum number of apples he could transfer is \(890\)?

ASSUMPTIONS :\(\color{Red}{Martin}\) could never control his greed means for every one kilometre he has to and definitely has to eat one apple. Based on his this habit he devised a way to transfer the maximum number of apples he could.

The horse could travel as much as you want it to.

Well, you may as well assume the minimum distance the horse can travel is one decameter in one go. This is for the sake of clarity so that the question reamins logical , realistic and does not go into abstract maths or calculus.

And finally assume everything is in integers, of course positive , that he ate a integer number of bananas each time etc. \(\color {Pink}{REMEMBER}\) It is a big hint to the question and may be the key to it.

And of course this problem is a converse of another problem that I liked which shall be revealed in the solution.