P=2(x+y)=80
S1=x*y
S2=(x+8)(y+2)
S2/S1=1.5,
(x+8)(y+2) / (x*y) = 3/2 (1)
x+y=40
x=40-y, 2*(40-y+8)(y+2)=3*y*(40-y)
(80-2y+16)(y+2)=120y-3y^2
80y+160-2y^2-4y+16y+32-120y+3y^2=0, y^2-28y+192=0, y1=16, y2=12
y1=16, x1=24
y2=12, x2=28
S1=16*24=384, S1'=12*28=336
S2=(24+8)(16+2)=576, S2'=(28+8)(12+2)=504
S2/S1=576/384=1.5
S2'/S1'=504/336=1.5
Ответ: y1=16, x1=24 или y2=12, x2=28