I have attached an image of the problem. Which should be the height h (expressed in terms of R) if the ball needs to reach the point Q. The ball will roll without slipping. In the image, Q is the highest point in the loop. R is the ratio of the loop (think of it as a circle). H is a point on the straight secton of the track, and it is measured respect to the ground.