I hope I am reading this correctly as there is no accompanying figure. You have a cylinder with a volume of 30 whose height is 2r
Volume of a cylinder is (pi)r^2 x h
30= (pi)r^2 x 2h= 2(pi)r^3
r^3= 30/2pi.= 4.7746 I am going to leave it as r^3 . You will see why below
The sphere must have the same radius as the cylinder for it to fit into it
Volume of a sphere is (4/3) pi r^3= 20 cubic cm