f(x)=-x²+6x+27

take out the negative

f(x) = -(x²-6-27)
f(x) = -(x+3)(x-9)