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