var x1 >=0; var x2 >=0; maximize z: 5*x1+4*x2; subject to c1: 6*x1+4*x2<=24; c2: x1+2*x2<=6; c3: -x1+x2<=1; c4: x2<=2; solve; display z,x1,x2;