FOIL deals with polynumerals in math. An example is a difference of squares as in (2n - 2)2 or (2n + 2)(2n - 2) =
F stand for first--2n X 2n = 4n2
O stands for outside-- 2n X -2 = -4n
I stands for inside-- -2 X 2n = 4n
L stands for last--2 X -2 = -4
In the end you get:
4n2 - 4n + 4n - 4 = 4n2 - 4
Can you see how everything is squared and the two numbers are being subtracted?