The value of x is 60, as you wrote. The sum of all angles in a triangle is 180°.
The sum of all angles on a straight line is also 180°. So to find y, solve for the third angle of the triangle on the left.
50 + 60 = 110. 180-110 = 70°.
Now we know 2 of the 3 angles along the line (70° and x, 60°)
70 + 60 + y = 180
130 + y = 180
y = 50
Hope this helps. LMK if you have questions.