The ceiling of a long hall is 25 m high. What is the maximum horizontal distance that a ball thrown with a speed of 40ms^−1 can go without hitting the ceiling of the hall?