FOIL and PEMDAS are both ways to solve mathematical equations.
FOIL is usually used to solve equations in two sets of parenthesis, for example:
PEMDAS is used to solve multiple-operation equations, such as:
5 x 4 + 6 - 2 x 7
Foil - prevent from succeeding
Pemdas - It is a method used my mathematics students to remember operations