The measure of the largest angle of a triangle is three times the measure of the smallest triangle and 2 more than the third angle. Find the measure of each angle.