If you want to check if your answer is correct, expanding it all out will help!
(x-6)(x+2)=0 <-- Use FOIL tactic
x²+2x-6x-12=0
x²-4x-12=0
As you can see, this is identical to the initial equation given. The x values would be 6 and -2, as seen from the factored equation.
Hope I helped :)