It's a bit difficult to tell what they are looking for, they may just want you to go like this:

This works because:

Lets say you start with the expression

you can factor it like this: add and subtract ab (note that ab - ab = 0 so we are adding the equivalent of zero, and thus not changing the problem)

group them together

factor "a" out of the first group, "-b" out of the second group

factor (a+b) out of each group

For that last step, if it was hard to see, replace "(a+b)" with some other letter, like "c" it would then look like this:

Then you can replace c with "(a+b)" again, and see that it looks proper.

So from this, we can see that any time we have any terms a^2 and b^2 we can directly factor it to this:

Be careful, though, if they have a plus sign instead of a minus sign, it does not work.

So for your problem, the first group is

Then you can subsequently do that for the rest of the terms.

...but the instructions are somewhat ambiguous, this may not be what they are looking for. They may be looking for what mathceleb posted, it is difficult to say.