-2x2+24x=40
2x2-24x+40=0,
x2- 12x+20=0,
(x-2)(x- 10)=0,
The solution is x 1=2, x2= 10,
∫2≤x≤8,
∴x=2;
(2)y=24-2x,
∴8≤y≤20.