The angles of a triangle are in A.P. If the greatest angle is three times the smallest angle, find the greatest angle in the triangle.