Let z: distance from the circular top of the cone to the xy-plane
z2 + r2 = 22 so r = √(4 - z2)
V(z) = 1/3·π·(4 - z2)(2 + z) = π/3 · [ - z3 - 2z2 + 4z + 8 ]
V'(z) = π/3 · [ - 3z2 - 4z + 4 ] = 0
z = [4 ± √(64)] / - 6 = 2/3 and V' goes from + to - there so V(2/3) is a maximum.
r = √(32/9) = 4√2 / 3 and h = 8/3