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