restart; restart erases all variableswith(simplex):Notation:mi = barrels of crude oil proceesed by method ig = gradeG = GasolineH = heating oilk = crackedeq_g6:= g6k+g6G+g6H = .2*m1+.3*m2+.4*m3;This expresses the fact that grade 6 produced = grade 6 usedeq_g8:= g8k+g8G+g8H = .3*m1+.4*m2+.4*m3+g6k;This expresses the fact that grade 8 produced = grade 8 usedeq_g10:= g10G+g10H = .5*m1+.3*m2+.2*m3+g8k;eq_G:= G = g6G+g8G+g10G;eq_G9:= g6G*6+g8G*8+g10G*10 >= 9*G;eq_Gmax:= G <= 2000;eq_H:= H = g6H + g8H + g10H;eq_H7:= g6H*6 + g8H*8 + g10H*10 >= 7*H;eq_Hmax:= H <= 600;constraints:= {eq_g6, eq_g8, eq_g10, eq_G, eq_G9, eq_Gmax, eq_H, eq_H7, eq_Hmax};revenue:= 11 * G + 6 * H;cost:= 3.4*m1 + 3*m2 + 2.6 *m3 + 1*g6k + 1.5*g8k;profit:= revenue-cost;sols:=maximize(profit,constraints,NONNEGATIVE);subs(sols,profit);