until the ball leaves the sphere, you have N + mg = ma
however, while it is on the sphere it is undergoing circular motion, hence F = m (v^2)/r
so at the exact moment the ball leaves the sphere, n = 0 and a = v^2/r
mg = m(v^2)/r so you can find the velocity at that moment. then you have to...