I need the answer as soon as possible I’m in a exam and I can’t get this

Given the functions below,
[tex]\begin{gathered} f(x)=x^2-2x+3 \\ f(x)=-6x \end{gathered}[/tex]Let us equate the two functions together,
[tex]-6x=x^2-2x+3[/tex]Collecting like terms,
[tex]\begin{gathered} x^2-2x+3+6x=0 \\ x^2-2x+6x+3=0 \end{gathered}[/tex][tex]x^2+4x+3=0[/tex]Let us now solve for x,
[tex]\begin{gathered} x^2+x+3x+3=0 \\ x(x+1)+3(x+1)=0 \end{gathered}[/tex][tex]\begin{gathered} (x+1)(x+3)=0 \\ x+1=0\text{ or x+3=0} \\ x=-1\text{ or x=-3} \\ x=-1\text{ or -3} \end{gathered}[/tex]Hence, the values of x are ( -3 , - 1).