This is simple. Both conditions are the same since 25= 5^2.
At the end of the first second, d = 1 ft. So the v1 average = 1/1 = 1 ft/s At the end of the 4th second, d = 16 ft. At the end of the 5th second, d = 25 ft. So during the last second, the ball covers 25-16 = 9 ft. So the v5 average = 9/1 = 9 ft/s.