An easy and efficient way to remember how to factor is to see the different parts of the polynomial.
If the last number (in this case 36) has the multiples which add up to the middle number (12), then the polynomial is factorable. 36 has the multiples (6,6) which add up to 12.
Now check the symbols, if the symbol before the last number is a +, that means the two factors have the same symbol. Now see the symbol before the middle number. If its a negative, the factors would be minus as well.
x²-12x+36 (x )(x ) (x- )(x- ) Same symbol as (-)12x (x-6)(x-6) Multiples of the last number (36)