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