> restart;

> with(plots):

Warning, the name changecoords has been redefined

> Rest:=[x<=7,x+3*y>=15,3*x+y>=9, x-5*y>=-30];

Rest := [x <= 7, 15 <= x+3*y, 9 <= 3*x+y, -30 <= x-...

> Regiao_factivel:=inequal(Rest, x=0..15,y=0..10, optionsfeasible=(color=blue),optionsexcluded=(color=white)):

> display([Regiao_factivel]);

[Maple Plot]

> curvas:=contourplot(5*x+6*y,x=0..10,y=0..10,contours=[50,60,70],linestyle=4,numpoints=1000,color=gray):

> display([Regiao_factivel,curvas]);

[Maple Plot]

> sol:=solve({x=7,x-5*y=-30},{x,y});

sol := {y = 37/5, x = 7}

> assign(sol);

> z:=5*x+6*y;

z := 397/5

>