3(X-3)(x-3)-6(3-x)

=3(x-3)(x-3)+6(x-3)

=(x-3)(3x-9+6)

=(x-3)(3x-3)