Well I would recomend coming up with some system of equations and geting to a single variable. From there try performing some calculus. Also consider that you are not actually removing a right cylinder from the sphere - it does not have flat ends. I hope that helps get you going.