I need to know step by step how to complete the square to this problem: x^2-12x

You have to take half of the middle number and square it..half of -12 is -6, square it=36..so it becomes x^2-12x+36, and when factored it becomes (x-6)^2