Polynomial long division works best with the polynomials written in standard form, with appropriate 0 terms added where necessary to account for all of the powers of the variable.
As shown in the "Hints," the quotient terms are the ratio of the leading dividend term and the leading divisor term. The product of the quotient term and divisor is subtracted from the dividend to get the new dividend at each step.