Answer:
[tex]x=-1 \ or \ x=-3[/tex]
Step-by-step explanation:
[tex]y = x^2 + 5x +2\\y = x-1\\\\[/tex]
Equating both equations equal to each other:
[tex]x^2 + 5x+2 = x-1\\x^2+5x+2 -x +1 =0\\x^2 + 4x +3 = 0[/tex]
Breaking the middle term:
[tex]x^2 + 4x +3 =0\\x^2 +3x + x +3 =0 \\x(x+3) +1 (x+3) = 0\\(x+1)(x+3)=0\\x+1 =0 \ or \ x+3 =0\\x=-1 \ or \ x=-3[/tex]