hi Melody,
typesetting polynom division can easy be done with the polynom package:
see: http://tex.stackexchange.com/questions/79182/how-to-draw-polynom-division
Example: \((27x^3 - 8y^3)/(3x-2y)\)
\usepackage{polynom}
\begin{document}
\textbf{Style A:}\par % this is the default
\polylongdiv[style=A]{27x^3 - 8y^3}{3x-2y}
\textbf{Style B:}\par
\polylongdiv[style=B]{27x^3 - 8y^3}{3x-2y}
\textbf{Style C:}\par
\polylongdiv[style=C]{27x^3 - 8y^3}{3x-2y}
\end{document}