Solve each system of equations by substitution or elimination.

y=x^2+5x+1
y=x^2+2x+1

I kinda understand how to do this but I have forgotten, please show your steps when you solve it and tell me which method you used.