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 Z occur at corner points, so we find every corner point and compare the values of Z there.
Step 1 — Define the variables.
Let x books of the first type and y books of the second type be placed on the shelf. These are whole numbers with x≥0 and y≥0.
Step 2 — Write the objective function.
We want the largest number of books, so we maximise the total Z.
Z=x+y
Step 3 — Write the constraints.
The books stand side by side, so their thicknesses add up and cannot exceed the 96 cm length of the shelf.
6x+4y≤96
We divide both sides by 2.
3x+2y≤48
The weight cannot exceed 21 kg.
x+1.5y≤21
We multiply both sides by 2.
2x+3y≤42
Step 4 — Draw the boundary lines and shade the feasible region.
We draw each boundary line through its points on the axes.
| Boundary line | Point on the x-axis | Point on the y-axis |
|---|
| 3x+2y=48 | (16,0) | (0,24) |
| 2x+3y=42 | (21,0) | (0,14) |
The origin satisfies both constraints, so each allowed half-plane is on the origin's side of its line. The feasible region is the shaded quadrilateral OABC.

Step 5 — Find the corner points.
On the axes, the region ends at A(16,0) on 3x+2y=48 and at C(0,14) on 2x+3y=42.
For B, we solve the two boundary equations together. We multiply the first by 3 and the second by 2, then subtract to remove y.
9x+6y−(4x+6y)=144−84
5x=60
x=12
We substitute this value of x into 3x+2y=48.
2y=48−36
2y=12
y=6
Step 6 — Evaluate Z at each corner point.
We substitute each corner point into Z=x+y.
| Corner point | Working | Value of Z |
|---|
| O(0,0) | 1×0+1×0 | 0 |
| A(16,0) | 1×16+1×0 | 16 |
| B(12,6) | 1×12+1×6 | 18 |
| C(0,14) | 1×0+1×14 | 14 |
The region is bounded, so the largest corner value, 18 at B(12,6), is the maximum. As a check, 12 books of the first type and 6 of the second fill exactly 96 cm and weigh exactly 21 kg.
Therefore, 12 books of the first type and 6 books of the second type should be placed, giving the maximum of 18 books.