Solve for the ? angle

Answer:
50
Step-by-step explanation:
since all angles add up to 180
and since this is a right triangle the square in the corner is 90 degrees
so 40+90+x=180
130+x=180
subtract 130 from both sides
130-130+x=180-130
x=50
Hope that helps :)