When multiplying out a pair of brackets, multiply each term in the first bracket by each term in the second bracket. So that this doesn't become too confusing, we use FOIL to help us.