The last one! Synthetic division please explain how to do this!!

The given expression is:
[tex](x^3+5x^2-18)\div(x-3)[/tex]This can be solved using the synthetic division as shown below
Therefore, the quotient = x² + 8x + 24
The remainder = 54
To confirm the remainder, substitute if f(54) = 0
f(x) = x³ + 5x^2