hmmm let's do it not using FOIL per se, but just like a simply multiplication, mind you that this works for all polynomials.

so notice, we first multiply the first term by all terms in the other polynomial, then the multiply the second term by all terms in the other, the rest is just adding like-terms.