Alright, here's a plot. Now, suppose:

. Can you then construct a function which relates the height of second hemisphere above the first (the orange line), as a function of the diameter of the second hemisphere (the green line)? Then take derivatives, set it equal to zero and get the maximum? I get