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