The area of a right triangle is 180 degrees,
We know the 2 angles are 90 and 40, To get the third angle you add 90 + 40 to get 130.
Now minus the hole area of the right triangle from the two added angles, (180 - 130) to find out the missing angle is 50 degrees.