Algebra Examples

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