Algebra Examples

Solve by Substitution x+y=2y=x^2-7x+10
I am unable to solve this problem.