The given volume provides the "constraint," which will allow us to write the height of the box in terms of its width.
We can then use the various prices and surface area to write an equation for cost in terms of the width only. Lastly, we will differentiate this equation, set it = 0, an solve to get the ideal width, which we then plug in to the cost function to find the minimum cost:
V = w·2w·h = 5 ; h = 5/2·w-2
C(w) = 4·w·2w + 2·7·w·(5/2·w-2) + 2·7·2w·(5/2·w-2) = 8w2 +105w-1
C'(w) = 16w - 105w-2 = 0
16w3 - 105 = 0
w = 3√(105/16) ; Cmin = 8·3√(105/16)2 + 105 / 3√(105/16)