For each of the following, the given angle is the base angle of an isosceles triangle. Find the third angle of the triangle.

a) 40°
b) 87°
c) 15°
d) 79°​