Precalculus Examples

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