Remember, all angles in a triangle always add up to 180 degrees.
We are given two out of three angles. We are given the measure of one angle (50 degrees) and the measure of another angle (Right angles always equal 90 degrees)
So, we have an equation:
x+90+50=180
x=180-90-50
x=90-50
x=40