# Pre-Algebra Practice Questions: FOILing with Two Sets of Parentheses

When an expression has two sets of parentheses next to each other, you need to multiply every term inside the first set of parentheses by every term in the second set. This process is called FOILing.

The word *FOIL *is a memory device for the words* First, Outside, Inside, Last, *which helps keep track of the multiplication when both sets of parentheses have two terms each.

## Practice questions

- Simplify the expression (
*x*+ 7)(*x*– 2). - Simplify the expression 6
*x*– (*x*– 2)(*x*– 4) + 7*x*^{2}.

## Answers and explanations

- The answer is
*x*^{2 }+ 5*x*– 14.Begin by FOILing the parentheses. Start by multiplying the two first terms:

Multiply the two outside terms:

Multiply the two inside terms:

Finally, multiply the two last terms:

Add these four products together and simplify by combining like terms:

- The answer is 6
*x*^{2 }+ 12*x*– 8.Begin by FOILing the parentheses: Multiply the first, outside, inside, and last terms:

Add these four products together and put the result inside one set of parentheses, replacing the two sets of parentheses that were originally there:

6

*x*– (*x*– 2)(*x*– 4) + 7*x*^{2}= 6*x*– (*x*^{2}– 4*x*– 2*x*+ 8) + 7*x*^{2}The remaining set of parentheses is preceded by a minus sign, so change the sign of every term in there to its opposite and drop the parentheses:

= 6

*x*–*x*^{2}+ 4*x*+ 2*x*– 8 + 7*x*^{2}Now simplify the expression by combining like terms and reordering your solution: