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