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