You already have one angle which is 50 the bottom left angle is a right angle and right angles always equal 90. To work out x, do 50+90=140 then do 180-140=40.
To work out y:
Angles on a straight also add up to 180.
So as you have figured out what x is (40) you would take it away from 180 to give you y.