[tex](a+b)(a-b) = a^2 - ab + ba - b^2 = a^2 - b^2[/tex]
Since the middle terms cancel each other out, what is left is the difference of two squares.
In your example (x+6)(x-6) = x² -36