A light ray falls on one of the faces of a prism at an angle 40 so that it suffers minimum deviation of 30 degrees. Find the angle of prism and angle of refraction at the given surface.