A ball is thrown upward and outward from the top edged of a 50 ft building it reaches its highest point 20 ft above and 10 ft out from the building. How far from the building is the ball when it hits the ground ?