Let Vx is the horizontal component of the velocity Vx2 >= Vx1 so ball 2 has longer horizontal displacement than ball 1. The above condition is true if the slope is not too large so that ball 2 is always stay on track.