Skip to content
NCERT Exemplar · Q15

Q.A man rides his motorcycle at the speed of 50 km/hour. He has to spend Rs 2 per km on petrol. If he rides it at a faster speed of 80 km/hour, the petrol cost increases to Rs 3 per km. He has at most Rs 120 to spend on petrol and one hour's time. He wishes to find the maximum distance that he can travel. Express this problem as a linear programming problem.

Puducherry CbseShort· 5mImportance★★★★★
45% · 30/67 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Let xx and yy be the distances (in km) ridden at 50 km/h and 80 km/h. With a petrol budget of Rs 120 and a time limit of 1 hour, the LPP is: Maximise Z=x+yZ = x + y subject to 2x+3y≤1202x + 3y \le 120, x50+y80≤1\dfrac{x}{50} + \dfrac{y}{80} \le 1, x,y≥0x, y \ge 0.

Setting up the model

The man can ride part of the way at 50 km/h and part at 80 km/h. Each speed uses two limited resources — money (petrol) and time — and he wants the greatest total distance. That is a linear programming problem: two decision variables, two linear constraints, and a linear objective.

1. Decision variables.

Let xx = distance (km) ridden at 50 km/h and yy = distance (km) ridden at 80 km/h, with x≥0x \ge 0, y≥0y \ge 0.

2. Objective function.

Total distance is x+yx + y, to be maximised: Maximise Z=x+yZ = x + y.

3. Petrol-cost constraint.

At 50 km/h petrol costs Rs 2 per km, so xx km costs 2x2x; at 80 km/h it costs Rs 3 per km, so yy km costs 3y3y. Total cost is at most Rs 120:

2x+3y≤120.2x + 3y \le 120.

4. Time constraint.

Time = distance divided by speed, so the two legs take x50\dfrac{x}{50} and y80\dfrac{y}{80} hours. Total time is at most 1 hour:

x50+y80≤1.\dfrac{x}{50} + \dfrac{y}{80} \le 1. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.