Let the man rides to his motorcycle to a distance x km at the speed of 50 km/h and to a distance y km at the speed of 80 km/h.
Therefore, cost on petrol is 2x + 3y.
Since, he has to spend Rs120 atmost on petrol.
∴ 2x + 3y ≤ 120 …(i)
Also, he has at most one hour’s time.