Answer:
S = 2x² + 4xh = 96
x² + 2xh = 48
2xh = 48 - x²
h = 24/x - x/2
V(x) = x²h = x²(24/x - x/2)
= 24x - x³/2
V'(x) = 24 - 3x²/2 = 0
24 = 3x²/2
3x² = 48
x² = 16
x = 4
V(4) = 24(4) - 4³/2 = 96 - 32 = 64
V"(x) = -6x > 0 for all x > 0
So this is a maximum volume.