The thing to remember on these is that, for something to be factored out, it has to be in EVERY term.
Here's something messier:
What can we factor out of this?
Look at the numbers (coefficients) first:
a 2 comes out
Now, look at the x's:
They all have one x... So, an x comes out.
Finally, the y's:
|They all have a|