A ball dropped from rest falls freely until it hits the ground with a speed of 18 meters per second. How long did it take for the ball to reach the ground?