A shelf is in the shape of a triangle. Find the angles of the triangle if the measures of the angles are in the ratio x:x:4x .