Confirming your payment

Skip to content

Sign up now and get .

Opening your dashboard

Class 12 Maths Chapter 23 Linear Programming: Previous Year Questions

9 questions on Chapter 23, each solved step by step. Class 12 Maths, ICSE 2026-27.

9 questions with solutions

4–6 marks · Medium difficulty

The first 5 solutions are on this page. This chapter is a long one, so the rest open on their own page to keep this one quick to load.

  1. 1

    Question 1

    A dietician wishes to mix two kinds of food X and Y in such a way that the mixture contains at least 10 units of vitamin A, 12 units of vitamin B and 8 units of vitamin C. The vitamin contents of one kg food is given below:

    FoodVitamin AVitamin BVitamin C
    X1 unit2 units3 units
    Y2 units2 units1 unit

    One kg of food X costs ₹ 24 and one kg of food Y costs ₹ 36. Using Linear Programming, find the least cost of the total mixture which will contain the required vitamins.

    MediumAsked 2015
    5 marks
    Solve with AI
    Written solution

    Solution:

    Key idea: The feasible region is the set of points that satisfy every constraint. Here it is unbounded, so we compare ZZ at the corner points and then check that the open half-plane where ZZ is smaller than the least corner value has no point in common with the region; only then is that corner value the minimum.

    Step 1 — Define the variables.

    Let the mixture contain xx kg of food X and yy kg of food Y. Amounts cannot be negative, so x≥0x \ge 0 and y≥0y \ge 0.

    Step 2 — Write the objective function.

    One kg of X costs ₹ 24 and one kg of Y costs ₹ 36. We call the total cost ₹ ZZ and minimise it.

    Z=24x+36yZ = 24x + 36y

    Step 3 — Write the constraints.

    Each kg of X gives 1 unit of vitamin A and each kg of Y gives 2 units, and at least 10 units are needed.

    x+2y≥10x + 2y \ge 10

    In the same way, vitamin B needs at least 12 units.

    2x+2y≥122x + 2y \ge 12

    We divide this inequality by 22.

    x+y≥6x + y \ge 6

    Vitamin C needs at least 8 units.

    3x+y≥83x + y \ge 8

    Step 4 — Draw the boundary lines and shade the feasible region.

    We draw each boundary line through its points on the axes.

    Boundary linePoint on the x-axisPoint on the y-axis
    x+2y=10x + 2y = 10(10,0)(10, 0)(0,5)(0, 5)
    x+y=6x + y = 6(6,0)(6, 0)(0,6)(0, 6)
    3x+y=83x + y = 8(83,0)\left(\dfrac{8}{3}, 0\right)(0,8)(0, 8)

    The origin does not satisfy any of the three "at least" constraints (for example 0≥100 \ge 10 is false), so each allowed half-plane lies on the side of its line away from the origin. Together with x≥0x \ge 0 and y≥0y \ge 0, this gives the unbounded shaded region below.

    Class 12 Maths Linear Programming

    Step 5 — Find the corner points.

    The line 3x+y=83x + y = 8 meets the y-axis at A(0,8)A(0, 8), and x+2y=10x + 2y = 10 meets the x-axis at D(10,0)D(10, 0).

    For BB, we solve 3x+y=83x + y = 8 and x+y=6x + y = 6 together. Subtracting the second equation from the first removes yy.

    2x=22x = 2

    x=1x = 1

    We substitute this value of xx into x+y=6x + y = 6.

    y=6−1y = 6 - 1

    y=5y = 5

    For CC, we solve x+y=6x + y = 6 and x+2y=10x + 2y = 10 together. Subtracting the first equation from the second removes xx.

    y=4y = 4

    We substitute this value of yy into x+y=6x + y = 6.

    x=6−4x = 6 - 4

    x=2x = 2

    Both points satisfy the third constraint as well: at B(1,5)B(1, 5) the value of x+2yx + 2y is 11, and at C(2,4)C(2, 4) the value of 3x+y3x + y is 10.

    Step 6 — Evaluate Z at each corner point.

    We substitute each corner point into Z=24x+36yZ = 24x + 36y.

    Corner pointWorkingValue of ZZ (in ₹)
    A(0,8)A\left(0, 8\right)24×0+36×824 \times 0 + 36 \times 8288288
    B(1,5)B\left(1, 5\right)24×1+36×524 \times 1 + 36 \times 5204204
    C(2,4)C\left(2, 4\right)24×2+36×424 \times 2 + 36 \times 4192192
    D(10,0)D\left(10, 0\right)24×10+36×024 \times 10 + 36 \times 0240240

    The smallest corner value is 192, at C(2,4)C(2, 4).

    Step 7 — Check the unbounded region.

    Since the region is unbounded, we look at the open half-plane 24x+36y<19224x + 36y < 192. Dividing by 1212, it is 2x+3y<162x + 3y < 16. Every corner gives 2x+3y≥162x + 3y \ge 16 (24 at AA, 17 at BB, 16 at CC, 20 at DD), and the region extends only upwards and to the right, where 2x+3y2x + 3y increases. So the half-plane has no point in common with the feasible region, and 192 is the minimum.

    Therefore, the least cost of the mixture is ₹ 192, using 2 kg of food X and 4 kg of food Y.

  2. 2

    Question 2

    A company manufactures two types of products A and B. Each unit of A requires 3 grams of nickel and 1 gram of chromium, while each unit of B requires 1 gram of nickel and 2 grams of chromium. The firm can produce 9 grams of nickel and 8 grams of chromium. The profit is ₹ 40 on each unit of product of type A and ₹ 50 on each unit of type B. How many units of each type should the company manufacture so as to earn maximum profit? Use linear programming to find the solution.

    MediumAsked 2016
    5 marks
    Solve with AI
    Written solution

    Solution:

    Key idea: The feasible region of a linear programming problem is the set of points that satisfy every constraint. If it is bounded, the maximum and the minimum of the objective function ZZ occur at corner points, so we find every corner point and compare the values of ZZ there.

    Step 1 — Define the variables.

    Let the company make xx units of product A and yy units of product B. The numbers of units cannot be negative, so x≥0x \ge 0 and y≥0y \ge 0.

    Step 2 — Write the objective function.

    The profit is ₹ 40 on each unit of A and ₹ 50 on each unit of B. We call the total profit ₹ ZZ and maximise it.

    Z=40x+50yZ = 40x + 50y

    Step 3 — Write the constraints.

    We read "the firm can produce 9 grams of nickel and 8 grams of chromium" as the amounts of the two metals available, so the metal used cannot exceed them. Each unit of A uses 3 g of nickel and each unit of B uses 1 g.

    3x+y≤93x + y \le 9

    Each unit of A uses 1 g of chromium and each unit of B uses 2 g.

    x+2y≤8x + 2y \le 8

    Step 4 — Draw the boundary lines and shade the feasible region.

    We draw each boundary line through its points on the axes.

    Boundary linePoint on the x-axisPoint on the y-axis
    3x+y=93x + y = 9(3,0)(3, 0)(0,9)(0, 9)
    x+2y=8x + 2y = 8(8,0)(8, 0)(0,4)(0, 4)

    The origin satisfies both constraints (0≤90 \le 9 and 0≤80 \le 8), so each allowed half-plane is on the origin's side of its line. With x≥0x \ge 0 and y≥0y \ge 0, the feasible region is the shaded quadrilateral OABCOABC.

    Class 12 Maths Linear Programming

    Step 5 — Find the corner points.

    Three corners lie on the axes: O(0,0)O(0, 0), A(3,0)A(3, 0) where 3x+y=93x + y = 9 meets the x-axis, and C(0,4)C(0, 4) where x+2y=8x + 2y = 8 meets the y-axis.

    For BB, we solve the two boundary equations together. We multiply 3x+y=93x + y = 9 by 22 and subtract x+2y=8x + 2y = 8, which removes yy.

    6x+2y−(x+2y)=18−86x + 2y - (x + 2y) = 18 - 8

    5x=105x = 10

    x=2x = 2

    We substitute this value of xx into 3x+y=93x + y = 9.

    y=9−6y = 9 - 6

    y=3y = 3

    Step 6 — Evaluate Z at each corner point.

    We substitute each corner point into Z=40x+50yZ = 40x + 50y.

    Corner pointWorkingValue of ZZ (in ₹)
    O(0,0)O\left(0, 0\right)40×0+50×040 \times 0 + 50 \times 000
    A(3,0)A\left(3, 0\right)40×3+50×040 \times 3 + 50 \times 0120120
    B(2,3)B\left(2, 3\right)40×2+50×340 \times 2 + 50 \times 3230230
    C(0,4)C\left(0, 4\right)40×0+50×440 \times 0 + 50 \times 4200200

    The region is bounded, so the largest corner value, 230 at B(2,3)B(2, 3), is the maximum.

    Therefore, the company should make 2 units of product A and 3 units of product B, for a maximum profit of ₹ 230.

  3. 3

    Question 3

    A farmer has a supply of chemical fertilizer of type A which contains 10% nitrogen and 6% phosphoric acid and of type B which contains 5% nitrogen and 10% phosphoric acid. After the soil test, it is found that at least 7 kg of nitrogen and the same quantity of phosphoric acid is required for a good crop. The fertilizer of type A costs ₹ 5.00 per kg and the type B costs ₹ 8.00 per kg. Using Linear programming, find how many kilograms of each type of fertilizer should be bought to meet the requirement and for the cost to be minimum. Find the feasible region in the graph.

    MediumAsked 2017
    5 marks
    Solve with AI
    Written solution

    Solution:

    Key idea: The feasible region is the set of points that satisfy every constraint. Here it is unbounded, so we compare ZZ at the corner points and then check that the open half-plane where ZZ is smaller than the least corner value has no point in common with the region; only then is that corner value the minimum.

    Step 1 — Define the variables.

    Let the farmer buy xx kg of fertilizer A and yy kg of fertilizer B, with x≥0x \ge 0 and y≥0y \ge 0.

    Step 2 — Write the objective function.

    Type A costs ₹ 5 per kg and type B costs ₹ 8 per kg. We call the total cost ₹ ZZ and minimise it.

    Z=5x+8yZ = 5x + 8y

    Step 3 — Write the constraints.

    Type A has 10%10\% nitrogen and type B has 5%5\%, and at least 7 kg of nitrogen is needed.

    10x100+5y100≥7\dfrac{10x}{100} + \dfrac{5y}{100} \ge 7

    We multiply both sides by 2020 to clear the fractions.

    2x+y≥1402x + y \ge 140

    Type A has 6%6\% phosphoric acid and type B has 10%10\%, and at least 7 kg is needed.

    6x100+10y100≥7\dfrac{6x}{100} + \dfrac{10y}{100} \ge 7

    We multiply both sides by 5050.

    3x+5y≥3503x + 5y \ge 350

    Step 4 — Draw the boundary lines and shade the feasible region.

    We draw each boundary line through its points on the axes.

    Boundary linePoint on the x-axisPoint on the y-axis
    2x+y=1402x + y = 140(70,0)(70, 0)(0,140)(0, 140)
    3x+5y=3503x + 5y = 350(3503,0)\left(\dfrac{350}{3}, 0\right)(0,70)(0, 70)

    The origin fails both constraints (0≥1400 \ge 140 is false), so each allowed half-plane is on the side away from the origin. With x≥0x \ge 0 and y≥0y \ge 0, the feasible region is the unbounded shaded region below.

    Class 12 Maths Linear Programming

    Step 5 — Find the corner points.

    The line 2x+y=1402x + y = 140 meets the y-axis at A(0,140)A(0, 140), and 3x+5y=3503x + 5y = 350 meets the x-axis at C(3503,0)C\left(\dfrac{350}{3}, 0\right).

    For BB, we solve the two boundary equations together. We rearrange 2x+y=1402x + y = 140, and write y=140−2xy = 140 - 2x; then we substitute it into 3x+5y=3503x + 5y = 350.

    3x+5(140−2x)=3503x + 5(140 - 2x) = 350

    3x+700−10x=3503x + 700 - 10x = 350

    −7x=−350-7x = -350

    x=50x = 50

    We substitute this value of xx into y=140−2xy = 140 - 2x.

    y=140−100y = 140 - 100

    y=40y = 40

    Step 6 — Evaluate Z at each corner point.

    We substitute each corner point into Z=5x+8yZ = 5x + 8y.

    Corner pointWorkingValue of ZZ (in ₹)
    A(0,140)A\left(0, 140\right)5×0+8×1405 \times 0 + 8 \times 14011201120
    B(50,40)B\left(50, 40\right)5×50+8×405 \times 50 + 8 \times 40570570
    C(3503,0)C\left(\dfrac{350}{3}, 0\right)5×3503+8×05 \times \dfrac{350}{3} + 8 \times 017503≈583.33\dfrac{1750}{3} \approx 583.33

    The smallest corner value is 570, at B(50,40)B(50, 40).

    Step 7 — Check the unbounded region.

    We look at the open half-plane 5x+8y<5705x + 8y < 570. Every corner gives 5x+8y≥5705x + 8y \ge 570, and the region extends only upwards and to the right, where 5x+8y5x + 8y increases. So the half-plane has no point in common with the feasible region, and 570 is the minimum.

    Therefore, the farmer should buy 50 kg of fertilizer A and 40 kg of fertilizer B, at a minimum cost of ₹ 570.

  4. 4

    Question 4

    A carpenter has 90, 80 and 50 running feet respectively of teak wood, plywood and rosewood which is used to produce product A and product B. Each unit of product A requires 2, 1 and 1 running feet and each unit of product B requires 1, 2 and 1 running feet of teak wood, plywood and rosewood respectively. If product A is sold for Rs 48 per unit and product B is sold for Rs 40 per unit, how many units of product A and product B should be produced and sold by the carpenter, in order to obtain the maximum gross income?

    Formulate the above as a Linear Programming Problem and solve it, indicating clearly the feasible region in the graph.

    MediumAsked 2019
    6 marks
    Solve with AI
    Written solution

    Solution:

    Key idea: The feasible region of a linear programming problem is the set of points that satisfy every constraint. If it is bounded, the maximum and the minimum of the objective function ZZ occur at corner points, so we find every corner point and compare the values of ZZ there.

    Step 1 — Define the variables.

    Let the carpenter make xx units of product A and yy units of product B, with x≥0x \ge 0 and y≥0y \ge 0.

    Step 2 — Write the objective function.

    Product A sells for Rs 48 per unit and product B for Rs 40 per unit. We call the gross income Rs ZZ and maximise it.

    Z=48x+40yZ = 48x + 40y

    Step 3 — Write the constraints.

    Teak wood: each unit of A needs 2 running feet and each unit of B needs 1, out of 90.

    2x+y≤902x + y \le 90

    Plywood: A needs 1 and B needs 2 running feet, out of 80.

    x+2y≤80x + 2y \le 80

    Rosewood: A and B need 1 running foot each, out of 50.

    x+y≤50x + y \le 50

    Step 4 — Draw the boundary lines and shade the feasible region.

    We draw each boundary line through its points on the axes.

    Boundary linePoint on the x-axisPoint on the y-axis
    2x+y=902x + y = 90(45,0)(45, 0)(0,90)(0, 90)
    x+2y=80x + 2y = 80(80,0)(80, 0)(0,40)(0, 40)
    x+y=50x + y = 50(50,0)(50, 0)(0,50)(0, 50)

    The origin satisfies all three constraints, so each allowed half-plane is on the origin's side of its line. With x≥0x \ge 0 and y≥0y \ge 0, the feasible region is the shaded pentagon OABCDOABCD.

    Class 12 Maths Linear Programming

    Step 5 — Find the corner points.

    On the axes, the region ends at A(45,0)A(45, 0) on 2x+y=902x + y = 90 and at D(0,40)D(0, 40) on x+2y=80x + 2y = 80, because these are the nearest of the three lines to the origin along each axis.

    For BB, we solve 2x+y=902x + y = 90 and x+y=50x + y = 50 together. Subtracting the second equation from the first removes yy.

    x=40x = 40

    We substitute this value of xx into x+y=50x + y = 50.

    y=50−40y = 50 - 40

    y=10y = 10

    For CC, we solve x+2y=80x + 2y = 80 and x+y=50x + y = 50 together. Subtracting the second equation from the first removes xx.

    y=30y = 30

    We substitute this value of yy into x+y=50x + y = 50.

    x=50−30x = 50 - 30

    x=20x = 20

    Each point also satisfies the third constraint: at B(40,10)B(40, 10) the plywood used is 60 running feet, and at C(20,30)C(20, 30) the teak used is 70 running feet.

    Step 6 — Evaluate Z at each corner point.

    We substitute each corner point into Z=48x+40yZ = 48x + 40y.

    Corner pointWorkingValue of ZZ (in Rs)
    O(0,0)O\left(0, 0\right)48×0+40×048 \times 0 + 40 \times 000
    A(45,0)A\left(45, 0\right)48×45+40×048 \times 45 + 40 \times 021602160
    B(40,10)B\left(40, 10\right)48×40+40×1048 \times 40 + 40 \times 1023202320
    C(20,30)C\left(20, 30\right)48×20+40×3048 \times 20 + 40 \times 3021602160
    D(0,40)D\left(0, 40\right)48×0+40×4048 \times 0 + 40 \times 4016001600

    The region is bounded, so the largest corner value, 2320 at B(40,10)B(40, 10), is the maximum.

    Therefore, the carpenter should make 40 units of product A and 10 units of product B, for a maximum gross income of Rs 2320.

  5. 5

    Question 5

    A company uses three machines to manufacture two types of shirts, half sleeves and full sleeves. The number of hours required per week on machine M1M_1, M2M_2 and M3M_3 for one Shirt of each type is given in the following table :

    M1M_1M2M_2M3M_3
    Half sleeves128/5
    Full sleeves218/5

    None of the machines can be in operation for more than 40 hours per week. The profit on each half sleeve shirt is ₹ 1 and the profit on each full sleeve shirt is ₹ 1.50. How many of each type of shirts should be made per week to maximise the company's profit?

    MediumAsked 2020
    6 marks
    Solve with AI
    Written solution

    Solution:

    Key idea: The feasible region of a linear programming problem is the set of points that satisfy every constraint. If it is bounded, the maximum and the minimum of the objective function ZZ occur at corner points, so we find every corner point and compare the values of ZZ there.

    Step 1 — Define the variables.

    Let the company make xx half sleeve shirts and yy full sleeve shirts per week, with x≥0x \ge 0 and y≥0y \ge 0.

    Step 2 — Write the objective function.

    The profit is ₹ 1 on a half sleeve shirt and ₹ 1.50 on a full sleeve shirt. We call the weekly profit ₹ ZZ and maximise it.

    Z=x+32yZ = x + \dfrac{3}{2}y

    Step 3 — Write the constraints.

    No machine may run for more than 40 hours a week. For machine M1M_1, the table gives 1 hour per half sleeve shirt and 2 hours per full sleeve shirt.

    x+2y≤40x + 2y \le 40

    For machine M2M_2, the hours are 2 and 1.

    2x+y≤402x + y \le 40

    For machine M3M_3, each shirt takes 85\dfrac{8}{5} hours.

    85x+85y≤40\dfrac{8}{5}x + \dfrac{8}{5}y \le 40

    We multiply both sides by 58\dfrac{5}{8}.

    x+y≤25x + y \le 25

    Step 4 — Draw the boundary lines and shade the feasible region.

    We draw each boundary line through its points on the axes.

    Boundary linePoint on the x-axisPoint on the y-axis
    x+2y=40x + 2y = 40(40,0)(40, 0)(0,20)(0, 20)
    2x+y=402x + y = 40(20,0)(20, 0)(0,40)(0, 40)
    x+y=25x + y = 25(25,0)(25, 0)(0,25)(0, 25)

    The origin satisfies all three constraints, so each allowed half-plane is on the origin's side of its line. With x≥0x \ge 0 and y≥0y \ge 0, the feasible region is the shaded pentagon OABCDOABCD.

    Class 12 Maths Linear Programming

    Step 5 — Find the corner points.

    On the axes, the region ends at A(20,0)A(20, 0) on 2x+y=402x + y = 40 and at D(0,20)D(0, 20) on x+2y=40x + 2y = 40.

    For BB, we solve 2x+y=402x + y = 40 and x+y=25x + y = 25 together. Subtracting the second equation from the first removes yy.

    x=15x = 15

    We substitute this value of xx into x+y=25x + y = 25.

    y=25−15y = 25 - 15

    y=10y = 10

    For CC, we solve x+2y=40x + 2y = 40 and x+y=25x + y = 25 together. Subtracting the second equation from the first removes xx.

    y=15y = 15

    We substitute this value of yy into x+y=25x + y = 25.

    x=25−15x = 25 - 15

    x=10x = 10

    Each point also satisfies the remaining machine limit: at B(15,10)B(15, 10) machine M1M_1 runs 35 hours, and at C(10,15)C(10, 15) machine M2M_2 runs 35 hours.

    Step 6 — Evaluate Z at each corner point.

    We substitute each corner point into Z=x+32yZ = x + \dfrac{3}{2}y.

    Corner pointWorkingValue of ZZ (in ₹)
    O(0,0)O\left(0, 0\right)1×0+32×01 \times 0 + \dfrac{3}{2} \times 000
    A(20,0)A\left(20, 0\right)1×20+32×01 \times 20 + \dfrac{3}{2} \times 02020
    B(15,10)B\left(15, 10\right)1×15+32×101 \times 15 + \dfrac{3}{2} \times 103030
    C(10,15)C\left(10, 15\right)1×10+32×151 \times 10 + \dfrac{3}{2} \times 1532.532.5
    D(0,20)D\left(0, 20\right)1×0+32×201 \times 0 + \dfrac{3}{2} \times 203030

    The region is bounded, so the largest corner value, 32.5 at C(10,15)C(10, 15), is the maximum. Both numbers at CC are whole numbers, as numbers of shirts must be.

    Therefore, the company should make 10 half sleeve shirts and 15 full sleeve shirts per week, for a maximum profit of ₹ 32.50 per week.

  6. 6

    Question 6

    Solve the following Linear Programming Problem graphically.

    Maximize Z=5x+2yZ = 5x + 2y subject to:

    x−2y≤2,x - 2y \le 2,

    3x+2y≤12,3x + 2y \le 12,

    −3x+2y≤3,-3x + 2y \le 3,

    x≥0,y≥0x \ge 0, y \ge 0

    MediumAsked 2023
    4 marks
  7. 7

    Question 7

    Aman has ₹ 1500 to purchase rice and wheat for his grocery shop. Each sack of rice and wheat costs ₹ 180 and ₹ 120 respectively. He can store a maximum number of 10 bags in his shop. He will earn a profit of ₹ 11 per bag of rice and ₹ 9 per bag of wheat.

    (i) Formulate a Linear Programming Problem to maximise Aman's profit.

    (ii) Calculate the maximum profit.

    MediumAsked 2024
    4 marks
  8. 8

    Question 8

    Two different types of books have to be stacked in the shelf of a library. The first type of book weighs 1 kg and has a thickness of 6 cm. The second type of book weighs 1.5 kg and has a thickness of 4 cm. The shelf is 96 cm long and can support a maximum weight of 21 kg.

    How should both the types of books be placed in the shelf to include the maximum number of books? Formulate a Linear Programming Problem and solve it graphically.

    MediumAsked 2025
    4 marks
  9. 9

    Question 9

    Raunak is a small-scale entrepreneur who sells sewing machines in a rural market. He wants to expand his business but has two main constraints: Capital and Storage.

    He has a total capital of ₹5,760 to invest. The godown can store a maximum number of 20 sewing machines.

    Raunak sells two types of machines:

    • Electronic sewing machine, each costs him ₹360.
    • Manually operated sewing machine, each costs him ₹240.

    His wife Radhika suggests selling an electronic machine at a profit of ₹22 and a manually operated sewing machine at a profit of ₹18.

    Using the concept of Linear Programming Problem, find the number of sewing machines of each type that Raunak should sell to maximise his profit.

    MediumAsked 2026
    4 marks