9n2 - 9 = (3n)2 - 32
This is a "difference of squares" of the form a2 - b2. A difference of squares is always factored as follows
a2 - b2 = (a+b)(a-b)
You confirm that for yourself by multiplying out the (a+b)(a-b) using the FOIL method. In your case, we have a = 3n and b = 3:
a2 - b2 = (a+b)(a-b)
(3n)2 - 32 = (3n+3)(3n-3)