We will use the F.O.I.L method.
-multiplying the First terms,
-multiplying the Outer terms,
-multiplying the Inner terms,
-and multiplying the Last terms
So we have x² + 9x - 3x - 27 which simplifies to x² + 6x - 27.