The thing is that I am confused about that the ball with mass m will eventually meet point B that is for sure but what if instead of staying on the curved surface, the ball projectiles with point of projection being point A. Then according to energy conservation does it still land on B or something else happens. And btw, what is the parameter to decide whether the ball will stick to the surface or will show projectile motion?