Since the angles two and four are vertical they have to equal each other so you put that in an equation and solve for x:
7x+7=140
-7 -7
7x=133 divide both sides by 7
x=19
Since angles 3 and 4 have to equal 180 to make a straight line they have to add together and equal 180 and solve for y:
5y+140=180
-140 -140
5y=40 divide both sides by 5
y=8
So your answer is x=19 and y=8