\[3a \cdot \left( a^{2} + 2a \right) - 4a \cdot \left( a^{2} - 7a \right) =\]
\[= 3a^{3} + 6a^{2} - 4a^{3} + 28a^{2} =\]
\[= - a^{3} + 34a²\]