y≤x (1')
x+y≤1 (2')
y≥-1 (3')
y=x (1)
x+y=1 (2)
y=-1 (3)
from (1) and (2)
B1(x,y)=(1/2,1/2) satisfy (3')
from (1) and (3)
B2(x,y)=(-1,-1) satisfy (2')
from (2) and (3)
B3(x,y)=(2,-1) satisfy (1')
Z= 2x+y
Z(1/2,1/2) = 3/2
Z(-1,-1) = -3
Z(2,-1) = 3
max Z = Z(2,-1) = 3