X^2+y^2=34

X+Y=2(solve using substitution method)

since y = 2-x, that gives you a handle on solving for x.

x^2 + (2-x)^2 = 34
2x^2 - 4x - 30 = 0
2(x+3)(x-5) = 0