Algebra Examples

Solve by Substitution x+y=3y=x^2-5x+6
I am unable to solve this problem.