There are many square prisms with volume 248 in. Let w represent the side length of the
square base and h represent the height in inches. Then the formula for the volume V, in cubic
inches, of these prisms is V = w2h and the equation for the surface area S, in square inches, is
S = 2w^2 + 4wh.

Write an equation for S as a function of w when the volume of the prism is 248 in^3. Explain or show your work.