Diameter = 21 cm ⇒ Radius (r = 10.5) cm
Volume is conserved:
Volume of sphere = Volume of cylinder + Volume of cone
34πr3=πr2hcyl+31πr2hcone
Substitute values((r=10.5),(hcyl=7)):
34πr3=πr2⋅7+31πr2h
Divide both sides by (\pi r^2):
34r=7+31h
Substitute (r = 10.5):
34×10.5=7+31h
14=7+31h
7=31h
h = 21
= 21 cm