Answer:
2.125 ft square by 2.657 ft high
Explanation:
Let x represent the side length in feet of the square base. Then the height is found from ...
V = Bh
V/B = h = 12/x²
The cost of material is the sum of costs of top, bottom, and sides. That is ...
cost = 8x² +2x² +4(4xh) = 10x² +192/x
__
The cost is minimized when its derivative with respect to x is zero.
d(cost)/dx = 20x -192/x² = 0
x³ = 9.6 . . . . . . multiply by x²/20 and add 9.6
x = ∛9.6 ≈ 2.125 . . . . feet
h = 12/x² ≈ 2.657 . . . . feet
The dimensions of the crate are 2.125 feet square by 2.657 feet high.
_____
Comment on the answer
You may notice that the cost of top and bottom together is $10 per square foot. The cost of opposite sides together is $8 per square foot. That is, the ratio of costs is ...
base : sides = 10 : 8
You may also notice that the ratio of dimensions is ...
height : base side = 2.657 : 2.125 = 10 : 8
That is no accident. The dimensions of the lowest-cost crate are such that any pair of opposite sides costs the same.