I have tried and tried to get this correct. Can anyone help me out and show me how you got the answer

Answer:
Remainder = 6 / (x-6)
Step-by-step explanation:
Two ways to get the answer.
1. using the polynomial remainder theorem.
Here we have a polynomial
f(x) = x^3-13*x^2+40*x+18
to be divided by (x-6).
The polynomial theorem says if we put x = 6 in f(x), we have
6^3-13*6^2+40*6+18
= 216 - 468 + 240 + 18
= 6.
The remainder is then of the long division 6/(x-6)
2. Alternatively, we can do the long division
Answer:
after u solve it or use a calculator u will get -194
Step-by-step explanation: