The left hand side of the expression is 1 if (i) x2−5x+2=0 or (ii) x2−4x+2=1
These are quadratics that can be solved using the standard quadratic formula. They will give values of x in the form x=−b±√b2−4ac2a
Adding these two values will cancel the discriminant part leaving you with a sum of −ba.
Do this for each quadratic and then add the results.
Also if x2−4x+2=−1 and x2−5x+2 is even then the RHS will be 1 (This will give you two more x values).