First to find x, all the degrees in a triangle add up to 180 degrees. So 50+70+x=180 which is also 120+x=180 which means x=60. Y is the exterior angle of x and a missing angle. Let's substitute the missing angle with the variable z. 60+50+z=180 which is 110+z=180 which means z is 70. So 180-x+z=y. 180-60+70=y which means y is equal to 50. Hope this helps!
X=60 y=50 a triangle is 180° so if you subtract 70 and 50 from that you get 60=x a straight line is also 180° so use the same method above from the left triangle and subtract all from 180 to get y