If a young man rides his motorcycle at 25 km/hr, he has to spend ₹ 2 per km on petrol, if he rides at a faster speed of 40 km/hr, the petrol cost increases to ₹ 5 per km. He has ₹ 100 to spend on petrol and wishes to find maximum distance he can travel within one hour. Express this as a linear programming problem and then solve it.
Linear Programming · Question 27 of 47
If a young man rides his motorcycle at 25 km/hr, he has to spend ₹ 2 per km on petrol, if he rides at a faster speed…
Solution:
Key idea: To solve an LPP graphically we choose the decision variables, write the objective function and the constraints, draw the feasible region, find its corner points and evaluate the objective function at each corner (corner point method). For a bounded region the best corner value is the optimum. Time taken is distance divided by speed.
Step 1 — Choose the decision variables.
Let the man ride km at 25 km/hr and km at 40 km/hr.
Step 2 — Write the objective function.
The total distance travelled (in km) is
This distance is to be maximized.
Step 3 — Write the petrol constraint.
Petrol costs ₹ 2 per km at the slower speed and ₹ 5 per km at the faster speed, and he has ₹ 100 to spend.
Step 4 — Write the time constraint.
At 25 km/hr the km take hours, and at 40 km/hr the km take hours. The total time is at most one hour.
Multiplying by 200 (the LCM of 25 and 40) clears the fractions.
The distances cannot be negative, so and .
Step 5 — Draw the feasible region.
The line passes through and .
The line passes through and .
Both inequalities hold at , so the region is on the origin side of both lines, in the first quadrant.

Step 6 — Find the corner points.
Three corners lie on the axes: , and .
Corner is where the two lines meet.
We take and subtract ; this removes .
Putting this into gives
Step 7 — Evaluate D at the corners.
The region is bounded, so we put each corner into .
| Corner point | |
|---|---|
| maximum | |
The greatest value is 30, at .
Step 8 — Check the answer.
At the time taken is hours, which makes exactly 1 hour.
The petrol cost is rupees, which makes exactly ₹ 100.
Therefore, the maximum distance he can travel in one hour is 30 km, riding km at 25 km/hr and km at 40 km/hr.
