D1 and D2 are densities
$$D1 = \frac{3*mass}{4*pi*r^3} $$ $$D2 = \frac{3*mass}{pi(3rh^2-h^3)} $$
and then $$\frac{D2}{D1} = \frac{3rh^2-h^3}{4r^3}$$
I'm not sure how to isolate the R and H so when given the two densities I can just calculate the ratio of $$\frac{H}{R}$$ Not given the mass, only the two densities are given