Two y angles and the angle that is 35 degrees in total is 180 degrees, so we get the equation
y + y + 35 = 180
2y = 145
y = 72.5 degrees
Two y angles and a x angle is in total 180 degrees, so we get the equation
y + y + x = 180
2y + x = 180
2(72.5) + x = 180
x = 35 degrees
Hope that helps!