A triangle has two angles measuring 90 degrees and 50 degrees, calculate the third angle of the triangle.

a. 50

b. 40

c. 45

d. 75