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