I'll let the question speak for itself. I'll give the proceeding question in order to clarify the second question.
You have a cone shaped bag. At the bottom of the bag is an orange with a radius of 2 inches. On top of the orange is a melon with a radius of 6 inches. It touches the orange and fits snugly in the bag, touching it in a ring around the orange. Its top is at the same level as the top of the bag. All of this is illustrated in this crude figure:
The height of the cone is  inches, and its radius is [10.39230485] inches.
****Here is the next Question****
This is like the preceding problem, except that the radii of the orange and the melon are general. Call the radius of the orange r, the radius of the melon R, and assume r < R. Your answer will be a mathematical expression involving r and R.
I've drawn up a basic diagram of how this looks below...
I know that h = 2R^2/R-r, but previously in the other question I used the angles and numbers and the laws of sine and cosine to get the answer. So, I'm a bit stumped on what to do next.
Any thoughts or comments would be greatly appreciated.