What is the measure of the remaining angle in a triangle if the two other angles have measures of 90 degrees, and 40 degrees?

A: 40 degrees
B: 30 degrees
C: 50 degrees
D: 60 degrees