FOIL=First, Outer, Inner, Last for the order of multiplication of terms.
(8x9+7)(-3x2+6)=
First: (8x9)(-3x2)=-24x11 +
Outer: (8x9)(6)=48x9 +
Inner: (7)(-3x2)=-21x2 +
Last: (7)(6)=42
Result: -24x11+48x9-21x2+42 is the solution.
QUICK CHECK
Set x=1: (8x9+7)(-3x2+6)=(15)(3)=45;
-24x11+48x9-21x2+42=-24+48-21+42=90-45=45. The two results match.