Let's dimension the horizontal length with the name X and the vertical dimensions as Y.
In this way the total volume will be given under the function
[tex]V = x^2 y[/tex]
The cost for the bottom is given by [tex](x^2)(20)=20x^2[/tex]
While the cost for performing the top by [tex](x^2)(16) = 16x^2[/tex]
The cost for performing the sides would be given by [tex](1.5)(xy)(4) = 6xy[/tex]
Therefore the total cost would be
[tex]c_{total}= 36x^2 +6xy[/tex]
The total volume is equivalent to
[tex]784 = x^2y[/tex]
[tex]xy = \frac{784}{x}[/tex]
Replacing in our cost function
[tex]c_{total}= 36x^2 +6xy[/tex]
[tex]c_{total}= 36x^2 +6(\frac{784}{x})[/tex]
Obtaining the first derivative and equalizing to zero we will obtain the ideal measure, therefore
[tex]c' = 0[/tex]
[tex]c' = 72x-\frac{4707}{x^2}[/tex]
[tex]0= 72x-\frac{4707}{x^2}[/tex]
[tex]x = (\frac{523}{2})^{1/3}[/tex]
[tex]x = 6.3947ft[/tex]
Then,
[tex]784 = x^2y[/tex]
[tex]y = \frac{784}{x^2}[/tex]
[tex]y = \frac{784}{6.3947^2}[/tex]
[tex]y = 19.17ft[/tex]
In this way the measures of the base should be 6.3947ft (width and length) and the height of 19.17ft.