Class 12 Maths, Worked in Full Past papersGet updates
Chapter 12 · Linear Programming

Section 12.2 · Furniture dealer: Furniture dealer: maximise Z=250x+75yZ = 250x + 75y

ExamplesFormulating and solving a linear programming problem · Sections 12.1 and 12.2
The question

A furniture dealer deals in only two items–tables and chairs. He has Rs 50,000 to invest and has storage space of at most 60 pieces. A table costs Rs 2500 and a chair Rs 500. He estimates that from the sale of one table, he can make a profit of Rs 250 and that from the sale of one chair a profit of Rs 75. He wants to know how many tables and chairs he should buy from the available money so as to maximise his total profit, assuming that he can sell all the items which he buys.

Exam answer

Let the dealer buy xx tables and yy chairs. His profit is Z=250x+75yZ = 250x + 75y⁠.

Maximise Z=250x+75yZ = 250x + 75y subject to

2500x+500y≤50000,i.e. 5x+y≤100x+y≤60x≥0, y≥0\begin{aligned} 2500x + 500y &\le 50000, \\ \text{i.e. } 5x + y &\le 100 \\ x + y &\le 60 \\ x \ge 0,\ y &\ge 0 \end{aligned}

Draw the lines (graph):

5x+y=1005x + y = 100 through (20,0)(20, 0) and (0,100)(0, 100)⁠;

x+y=60x + y = 60 through (60,0)(60, 0) and (0,60)(0, 60)⁠.

At (0,0)(0, 0)⁠: 0≤1000 \le 100 and 0≤600 \le 60 are true, so shade the side of each line that contains the origin. With x,y≥0x, y \ge 0⁠, the feasible region is OABC (shaded). It is bounded.

At B, subtracting x+y=60x + y = 60 from 5x+y=1005x + y = 100 gives 4x=404x = 40⁠, so x=10x = 10⁠, y=50y = 50⁠.

CornerZ=250x+75yO(0,0)0A(20,0)5000B(10,50)6250←maxC(0,60)4500\begin{array}{c|c} \text{Corner} & Z = 250x + 75y \\ \hline O(0, 0) & 0 \\ A(20, 0) & 5000 \\ B(10, 50) & 6250 \leftarrow \text{max} \\ C(0, 60) & 4500 \end{array}

The region is bounded, so the largest value in the table is the maximum of ZZ⁠.

∴\therefore Maximum Z=6250Z = 6250 at (10,50)(10, 50)⁠: the dealer should buy 10 tables and 50 chairs, for a maximum profit of Rs 6250.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Everything the dealer can choose is one pair of numbers (x,y)(x, y)⁠: how many tables and how many chairs. Each limit (money, space, no negative amounts) is a straight-line inequality, so it keeps one side of a line on a graph, and the pairs that obey every limit form a closed polygon, the feasible region. The profit Z=250x+75yZ = 250x + 75y is linear, and a linear function on a bounded polygon is largest at a corner. So we only have to find the four corners and compare the profit at each.

Given, to find, and the plan
Given
Money: at most Rs 50,000. Space: at most 60 pieces. A table costs Rs 2500 and earns Rs 250 profit; a chair costs Rs 500 and earns Rs 75 profit. Everything bought is sold.
To find
How many tables and chairs to buy for the largest total profit, and that profit.
Plan
(1) Name the unknowns. (2) and (3) Write the money and space limits as inequalities. (4) Write the profit ZZ⁠. (5) and (6) Draw each line and choose its side. (7) Shade the feasible region. (8) Find its corners. (9) Work out ZZ at each corner. (10) Pick the largest.

Basics you need

1Words into inequalities

"At most 60" means ≤60\le 60⁠; "has Rs 50,000 to invest" means the spending is ≤50000\le 50000⁠. Basics: at most and at least

2Drawing a line from its axis points

For ax+by=cax + by = c⁠, put y=0y = 0 to get (ca,0)\left(\frac{c}{a}, 0\right) and x=0x = 0 to get (0,cb)\left(0, \frac{c}{b}\right)⁠, then join them. Basics: where a line meets the axes

3Which side of the line

Put a point not on the line, usually (0,0)(0, 0)⁠, into the inequality. True: shade its side. False: shade the other side. Basics: one side of a line

4The feasible region

The points that obey every constraint, including x≥0x \ge 0 and y≥0y \ge 0⁠, are where all the shaded sides overlap. Basics: where the shadings overlap

5Corner points

A corner is a point of the region where two boundary lines meet; find it by solving their two equations together. Basics: a corner solves two equations

6Bounded regions and Theorem 2

A region is bounded if a circle can be drawn round it. On a bounded region Z=ax+byZ = ax + by has a maximum and a minimum, each at a corner point (Theorem 2, Section 12.2.2). Basics: bounded or not

Solution

  1. Name the unknowns

    Let xx be the number of tables and yy the number of chairs that the dealer buys. Neither can be negative:

    x≥0,y≥0.x \ge 0, \qquad y \ge 0.
    Every plan the dealer could follow is described completely by the two numbers xx and yy⁠, so these are the unknowns (the book calls them decision variables). The conditions x≥0x \ge 0⁠, y≥0y \ge 0 are not written in the story, but a negative number of chairs makes no sense; the book calls them the non-negative constraints and always includes them.
  2. The money (investment) constraint

    xx tables cost 2500x2500x rupees and yy chairs cost 500y500y rupees. Together they cannot exceed Rs 50,000:

    2500x+500y≤50000.2500x + 500y \le 50000.

    Dividing every term by 500:

    5x+y≤100.5x + y \le 100.
    "He has Rs 50,000 to invest" sets an upper limit on what he spends, so the total cost is at most 50000, which is "≤\le". Dividing both sides of an inequality by a positive number keeps its direction, and the smaller numbers are easier to graph: 2500÷500=52500 \div 500 = 5⁠, 500÷500=1500 \div 500 = 1⁠, 50000÷500=10050000 \div 500 = 100⁠.
  3. The space (storage) constraint

    Each table and each chair takes one storage place, and there are at most 60 places:

    x+y≤60.x + y \le 60.
    The number of pieces bought is x+yx + y⁠, and "storage space of at most 60 pieces" means this is at most 60. Note that money alone would allow 100 chairs (50000÷50050000 \div 500⁠), but space allows only 60, so both limits matter.
  4. The profit (objective function) and the whole problem

    Each table earns Rs 250 and each chair Rs 75, so the total profit is

    Z=250x+75y.Z = 250x + 75y.

    The dealer's problem is therefore the linear programming problem

    Maximise Z=250x+75ysubject to 5x+y≤100,x+y≤60, x≥0, y≥0.\begin{aligned} &\text{Maximise } Z = 250x + 75y \\ &\text{subject to } 5x + y \le 100, \\ &\qquad x + y \le 60,\ x \ge 0,\ y \ge 0. \end{aligned}
    The quantity to make as large as possible is the profit, and it depends on xx and yy only through 250x+75y250x + 75y⁠: a linear objective function. Together with the linear constraints from Steps 1 to 3, this is exactly the form the book calls a linear programming problem (Section 12.2.1).
  5. Draw the line 5x+y=1005x + y = 100 and choose its side

    Put y=0y = 0⁠: 5x=1005x = 100⁠, so x=20x = 20⁠. Put x=0x = 0⁠: y=100y = 100⁠. The line passes through (20,0)(20, 0) and (0,100)(0, 100)⁠.

    Test (0,0)(0, 0) in 5x+y≤1005x + y \le 100⁠: 0≤1000 \le 100 is true. So we keep the side of the line that contains the origin.

    A linear inequality is satisfied on one whole side of its boundary line (together with the line itself, because of the "==" in "≤\le"). One test point decides which side; the origin is the easiest because every term becomes 0.
  6. Draw the line x+y=60x + y = 60 and choose its side

    Put y=0y = 0⁠: x=60x = 60⁠. Put x=0x = 0⁠: y=60y = 60⁠. The line passes through (60,0)(60, 0) and (0,60)(0, 60)⁠.

    Test (0,0)(0, 0) in x+y≤60x + y \le 60⁠: 0≤600 \le 60 is true. Again we keep the origin's side.

    Same method. For any "≤\le" constraint with a positive number on the right, the origin's side is the one kept.
  7. Shade the feasible region

    The constraints x≥0x \ge 0 and y≥0y \ge 0 keep only the first quadrant. The part of the first quadrant on the origin's side of both lines is the quadrilateral OABC in the graph.

    x y O 10 30 40 50 70 20 40 80 (0, 100) (60, 0) A(20, 0) B(10, 50) C(0, 60) 5x + y = 100 x + y = 60 OABC
    The feasible region OABC (shaded) for the dealer: xx tables across, yy chairs up. One unit along the xx-axis is drawn 1.4 times as long as one unit along the yy-axis, so that both lines fit. The corners are O(0, 0), A(20, 0), B(10, 50) and C(0, 60).

    For example, (10,50)(10, 50) is feasible, while (25,40)(25, 40) is not: 5(25)+40=165>1005(25) + 40 = 165 > 100⁠, so it needs more money than he has. OABC is bounded: it fits inside a circle about O of radius 61, since every corner is at most 60 from O.

    The feasible region is the set of points obeying all four constraints at once, so it is the overlap of the four kept sides. Every point of it is a possible plan; every point outside breaks at least one limit. Knowing that it is bounded matters for the last step.
  8. Find the corner points

    O (0,0)(0, 0)⁠: where the two axes meet.

    A (20,0)(20, 0)⁠: where 5x+y=1005x + y = 100 meets the xx-axis. (The other line meets the xx-axis at (60,0)(60, 0)⁠, but there 5(60)+0=300>1005(60) + 0 = 300 > 100⁠, so that point is not in the region.)

    C (0,60)(0, 60)⁠: where x+y=60x + y = 60 meets the yy-axis. ((0,100)(0, 100) is not in the region: 0+100=100>600 + 100 = 100 > 60⁠.)

    B: where the two lines cross. Subtract the equations:

    (5x+y)−(x+y)=100−604x=40x=10,\begin{aligned} (5x + y) - (x + y) &= 100 - 60 \\ 4x &= 40 \\ x &= 10, \end{aligned}

    and then y=60−10=50y = 60 - 10 = 50⁠. So B is (10,50)(10, 50)⁠. It obeys every constraint: 5(10)+50=100≤1005(10) + 50 = 100 \le 100⁠, 10+50=60≤6010 + 50 = 60 \le 60⁠, and 10,50≥010, 50 \ge 0⁠.

    A corner is a point of the region where two boundary lines meet. Four lines (two constraint lines and two axes) give six crossing points, but only four of them lie in the region; (60,0)(60, 0) and (0,100)(0, 100) break the other constraint, so they are not corners. B is not easy to read accurately off a graph, so we solve the equations.
  9. Work out ZZ at each corner

    Corner pointZ=250x+75yZ = 250x + 75y (in Rs)
    O (0,0)(0, 0)0+0=00 + 0 = 0
    A (20,0)(20, 0)5000+0=50005000 + 0 = 5000
    B (10,50)(10, 50)2500+3750=62502500 + 3750 = 6250 ← largest
    C (0,60)(0, 60)0+4500=45000 + 4500 = 4500
    These are the only candidates: by Theorem 1, if ZZ has a largest value on the region, it occurs at a corner point. The book calls the largest value in this table MM and the smallest mm⁠.
  10. Conclude

    The region OABC is bounded, so by Theorem 2 the largest value in the table is the maximum of ZZ on the whole region: Z=6250Z = 6250 at B(10,50)(10, 50)⁠.

    So the dealer should buy 10 tables and 50 chairs; his profit is then Rs 6250, the most possible. The numbers are whole numbers, as they must be, and the plan uses all the money and all the space: 2500(10)+500(50)=500002500(10) + 500(50) = 50000 and 10+50=6010 + 50 = 60⁠.

    The book's first guesses fit the table: tables only gives 20 tables and Rs 5000 (corner A), chairs only gives 60 chairs and Rs 4500 (corner C). Mixing at B beats both. Steps 5 to 10 are the book's Corner Point Method: (1) find the region and its corners, (2) evaluate ZZ at each, (3)(i) for a bounded region take the largest and smallest values. For an unbounded region, step 3(ii), the book adds an open half-plane test. It prints the test as items 4(a) and 4(b), directly after step 3(ii), and Example 4 refers to it as "Step 3(ii)". It is not needed here, because OABC is bounded.
Result

Maximise Z=250x+75yZ = 250x + 75y subject to 5x+y≤1005x + y \le 100⁠, x+y≤60x + y \le 60⁠, x≥0x \ge 0⁠, y≥0y \ge 0⁠. The feasible region is the bounded quadrilateral with corners (0,0)(0, 0)⁠, (20,0)(20, 0)⁠, (10,50)(10, 50)⁠, (0,60)(0, 60)⁠, and

Maximum Z=6250 at (10,50).\text{Maximum } Z = 6250 \text{ at } (10, 50).

The dealer should buy 10 tables and 50 chairs, for a maximum profit of Rs 6250. (Textbook answer: maximum profit Rs 6250 at (10,50)(10, 50)⁠, i.e. 10 tables and 50 chairs.)

Steps 1 to 4 write the problem from the story (formulation). That step is in the book but not examined: the current CBSE syllabus no longer lists it. Solving the problem by the graph, Steps 5 to 10, is examined.

Check it with numbers

Cost of the plan: 10×2500+50×500=25000+25000=5000010 \times 2500 + 50 \times 500 = 25000 + 25000 = 50000 rupees, exactly the money available; pieces: 10+50=6010 + 50 = 60⁠, exactly the space.

Moving away from B along an edge lowers the profit: (11,45)(11, 45) is on 5x+y=1005x + y = 100 and gives 2750+3375=61252750 + 3375 = 6125⁠; (9,51)(9, 51) is on x+y=60x + y = 60 and gives 2250+3825=60752250 + 3825 = 6075⁠. Both are less than 6250 ✓.

A computer check of all 851 whole-number pairs (x,y)(x, y) in the region found the largest profit 6250, at (10,50)(10, 50) only ✓.

Common mistakes
  1. Taking (0,100)(0, 100) or (60,0)(60, 0) as corners. They are where a line meets an axis, but each breaks the other constraint, so they are outside the region.
  2. Writing "≥\ge" for "at most". "At most 60" and "has Rs 50,000" are upper limits: "≤\le".
  3. Forgetting x≥0x \ge 0⁠, y≥0y \ge 0⁠. Without them the region is not closed off and has no corners O, A, C.
  4. Reading B off the graph. Solve 5x+y=1005x + y = 100 and x+y=60x + y = 60 together; a guess such as (10,48)(10, 48) gives the wrong profit.
  5. Stopping at "x=10x = 10⁠, y=50y = 50". The question asks what the dealer should buy: say 10 tables and 50 chairs, profit Rs 6250.
What to take away
  1. Formulating an LPP: name the unknowns, turn each limit into a linear inequality (with x,y≥0x, y \ge 0⁠), and write the quantity to optimise as Z=ax+byZ = ax + by⁠.
  2. Corner Point Method: draw each line from its axis points, shade, find every corner (solve two equations where needed, and check the point in every constraint), make the table of ZZ⁠, and pick the best value.
  3. For a bounded region the largest value in the table is the maximum, and the smallest is the minimum. The same steps solve Example 1.

Every fact used, and where it comes from

FactUsed inSource
Non-negative constraints x≥0x \ge 0⁠, y≥0y \ge 0Step 1Section 12.2.1 (Lesson)
"At most" gives "≤\le"; investment and storage constraintsSteps 2, 3Section 12.2.1 (Basics)
Objective function, constraints, linear programming problemStep 4Section 12.2.1, definitions
A line from its axis points; a test point chooses the sideSteps 5, 6Class XI, Linear Inequalities (Basics, Basics)
Feasible region; feasible and infeasible solutionsStep 7Section 12.2.2 (Basics)
Bounded: can be enclosed within a circleStep 7Section 12.2.2, footnote to Theorem 2 (Basics)
Corner point: a point of the region where two boundary lines meetStep 8Section 12.2.2, footnote to Theorem 1 (Basics)
Theorem 1: an optimal value occurs at a corner pointStep 9Section 12.2.2
Theorem 2: on a bounded region, maximum and minimum exist at cornersStep 10Section 12.2.2
Corner Point Method (its steps 1, 2 and 3(i))Steps 5 to 10Section 12.2.2 (Lesson)
All valuesSteps, CheckRecomputed with exact fractions in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →