Answer
$x^2-7x+7$
Work Step by Step
The given expression simplifies to
\begin{array}{l}
(x^2-6x+2)-(x-5)
\\=
x^2-6x+2-x+5
\\=
x^2+(-6x-x)+(2+5)
\\=
x^2-7x+7
.\end{array}
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.