Two right circular cones X and Y are made X having 3 times the radius of Y and Y having half the volume of X. Calculate the ratio between the heights of X and Y.