is this correct or wrong?

Answer:
close. Quotient = x² -8x +27; Remainder -77
Step-by-step explanation:
It looks like you forgot an x in your restatement of the quotient. Otherwise the work appears correct.
You may need to write the quotient as ...
x² -8x +27 -77/(x+3)
It will depend on the form of answer your teacher is looking for.