I'm gonna feel really dumb asking this but how do you expand triple brackets?

I can do single and double brackets no problem with the FOIL method, but what multiplies with what when you have triple brackets?

Also I was hoping you could help me on a question also here it is:

I've deduced that because

But what do I do next to factorise?

Thanks in advance!