In this example we are multiplying two binomials so FOIL method can be used.
$$ \begin{aligned} \left( \color{blue}{ x+2}\right) \cdot \left( \color{orangered}{ -7x-8}\right) &= \underbrace{ \color{blue}{x} \cdot \left( \color{orangered}{-7x} \right) }_{\text{FIRST}} + \underbrace{ \color{blue}{x} \cdot \left( \color{orangered}{-8} \right) }_{\text{OUTER}} + \underbrace{ \color{blue}{2} \cdot \left( \color{orangered}{-7x} \right) }_{\text{INNER}} + \underbrace{ \color{blue}{2} \cdot \left( \color{orangered}{-8} \right) }_{\text{LAST}} = \\ &= -7x^2 + \left( -8x\right) + \left( -14x\right) + \left( -16\right) = \\ &= -7x^2 + \left( -8x\right) + \left( -14x\right) + \left( -16\right) = \\ &= -7x^2-22x-16; \end{aligned} $$