hi how do you factor out (x^3-64)
Since it's the standard form $\displaystyle x^3-y^3$ and you forgot (suppose) how to factor that, proceed as follows:
$\displaystyle \begin{aligned}
x^{3}-y^{3}&=(x-y)^{3}+3xy(x-y) \\
& =(x-y)\left\{ \left( x-y \right)^{2}+3xy \right\} \\
& =(x-y)\left( x^{2}-2xy+y^{2}+3xy \right) \\
& =(x-y)\left( x^{2}+xy+y^{2} \right).
\end{aligned}$
You can also use the polynomial long division but I think this method is much nicer.