Find the last term to make the trinomial into a perfect square:

x212x+\displaystyle {x}^{{2}}-{12}{x}+  

When this is factored, it becomes: