We have, maximize Z=10x1+25x2
Subject to 0≤x1≤3,0≤x2≤3,x1+x2≤5
Let l1:x1=3, l2:x2=3 l3:x1+x2=5, l4:x1=0 and l5:x2=0 For B : Solving l1 and l3, we get B(3,2) For C : Solving l2 and l3, we get C(2,3)
Shaded portion OABCD is the feasible region,
where O(0,0),A(3,0),B(3,2),C(2,3),D(0,3)
Now maximize Z=10x1+25x2 Z at 0(0,0)−10(0)+25(0)=0 Z at A(3,0)=10(3)+25(0)=30 Z at B(3,2)=10(3)+25(2)=80 Z at C(2,3)=10(2)+25(3)=95 Z at D(0,3)=10(0)+25(3)=75
Thus, Z is maximized at C(2,3) and its maximum value is 95.