.
There are two basic configurations and two solutions, respectively.
One configuration is when the base of the cone and its apex are located in the same hemi-sphere.
Then the distance from the center of the sphere to the base of the cone is
= = = = 6 cm.
Hence, the height of the cone is 10-6 = 4 cm.
Another configuration is when the base of the cone and its apex are located in different hemi-spheres.
Then the distance from the center of the sphere to the base of the cone is the same
= = = = 6 cm.
But the height of the cone in this case is 10+6 = 16 cm.
Solved.