Answer
On track A the ball moves at medium speed almost the entire time.
On track B the ball sometimes moves at the same medium speed, but also spends considerable time moving more quickly, on the portion of the track where it has fallen a greater distance from its original starting point.
Since the problem specifies that the tracks are the same length, the ball on track B finishes first.