The flag of a country contains an isosceles triangle.​ (Recall that an isosceles triangle contains two angles with the same​ measure.) If the measure of the third angle of the triangle is 45​° more than three times the measure of either of the other two​ angles, find the measure of each angle of the triangle.​ (Recall that the sum of the measures of the angles of a triangle is​ 180°.)