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 degrees more than the measure of either of the two angles, find the measures of each triangle