In a right triangle with legs of lengths 9 and 40 feet, and a hypotenuse of 41 feet, use any inverse trigonometric function(s) to solve for the non-right angles in degrees.