Okay, here we have this:
We will take as the first term the upper squares and as the second term the lower ones, and we obtain that:
[tex]\begin{gathered} (x^2-x-x-1-1-1)+(-x^2+x+x+x+x+1+1) \\ =(x^2-2x-3)+(-x^2+4x+2) \\ =2x-1 \end{gathered}[/tex]Here we obtain that the correct answer is the option D.