A ball thrown horizontally from the top of a building 24 m above the ground strikes the ground at the distance of 18 m from the base of the building. What was its initial velocity? (Use g = 10 m/s2.)