These mostly ask for the greatest volume. This is a change.
Let r=radius of cone, R=radius of sphere, h=height of cone.
By using triangles, we can see that
Where, by triangle OAB,
Now, R is a constant, so we have it down to one variable, r, the radius of the cone.
This produces a booger to differentiate, though.