A sphere with a radius of 3 cm has the same volume as a cone with a radius of 6 cm. What is the height of the cone?