A ball is thrown with an initial velocity of 100 ft/s at an angle of 40 degree with the horizontal.Determine the minimum distance from a 50 ft height building from which the ball can be thrown and not hit the side of the building , but it may land on the roof depending upon how long the building is.