First we draw the lines AB, CD and EF whose equations are x + 4y = 24, 3x + y = 21 and x + y = 9 respectively.
The feasible region is OCPQBO which is shaded in the graph.
The vertices of the feasible region are O (0, 0), C (7, 0), P, Q and B (0, 6).
P is the point of intersection of the lines 3x + y = 21 … (1)
and x + y = 9 … (2)
On subtracting, we get 2x = 12 ∴ x = 6
Substituting x = 6 in equation (2), we get
6 + y = 9 ∴ y = 3
∴ P = (6, 3)
Q is the point of intersection of the lines
x + 4y = 24 … (3)
and x + y = 9 … (2)
On subtracting, we get
3y = 15 ∴ y = 5
Substituting y = 5 in equation (2), we get
x + 5= 9 ∴ x = 4
∴ Q = (4, 5)
∴ the corner points of the feasible region are 0(0,0), C(7, 0), P (6, 3), Q (4, 5) and B (0, 6).
The values of the objective function 2 = 3x + 5y at these corner points are
z(O) = 3(0)+ 5(0) = 0 + 0 = 0
z(C) = 3(7) + 5(0) = 21 + 0 = 21
z(P) = 3(6) + 5(3) = 18 + 15 = 33
z(Q) = 3(4) + 5(5) = 12 + 25 = 37
z(B) = 3(0)+ 5(6) = 0 + 30 = 30
∴ z has maximum value 37, when x = 4 and y = 5.