In the example 15: They are saying that,
$$x^3-23x^2+142x-120 = x^3-x^2-22x^2+22x+120x-120$$
From where did $22x^2$ and $22x$ come and also $120x$.
Please help me clear my confusion.

In the example 15: They are saying that,
$$x^3-23x^2+142x-120 = x^3-x^2-22x^2+22x+120x-120$$
From where did $22x^2$ and $22x$ come and also $120x$.
Please help me clear my confusion.

Note that $$-23x^2=-x^2-22x^2$$ and that $$142x=22x+120x.$$
So, we have
$$x^3\color{red}{-23x^2}+\color{blue}{142x}-120=x^3\color{red}{-x^2-22x^2}+\color{blue}{22x+120x}-120.$$
P.S. If you are asking the purpose (or background) of this rearrangement, then note that they noticed that $$142-120=22,\ \ 23-22=1$$ and that the coefficients can be $1,-1,-22,22,120,-120$ from the left. This is of course to factor as $$x^2(x-1)-22x(x-1)+120(x-1)=(x-1)(x^2-22x+120).$$