x^(2)-3x-6x+18 factor plz explain detail

1 answer

(x^2-3x)+(-6x+18)
=x(x-3)-6(x-3)
=(x-3)(x-6)