
Robert D. answered 04/11/19
Calculus Made Easy
Let the sides be x and y
Area=x.y=82 so y= 82/x (1)
Cost painting C= 50.x+40.(x+2y) (2)
substitute (1) in (2)
C=90.x+80*82/x
find the derivative
C'=90-82*80/x^2
equate C' to zero and solve for x
x^2=80*82/90=72.8889
x=sqrt( 72.8889)=8.5375 ft
y=82/x=9.6047 ft