they've already answered your question, but I just wanted to share this:
My algebra teacher had "the number one rule" and he would shout "Factor out! Factor out! Factor out!". So we always to remember to look for that first thing, because it makes it easier to solve.