Can someone explain how I would get the answer to this?

We are given the following values of the function to be
[tex]\begin{gathered} f(x)=7x^2-2x+5 \\ g(x)=-x+2 \end{gathered}[/tex]To find (f.g)(x)
We will find the product of f(x) and g(x)
[tex]f(x)\times g(x)=(7x^2-2x+5)\times(-x+2)_{}[/tex]Upon expanding, we will have
[tex]\begin{gathered} =7x^2\mleft(-x\mright)+7x^2\cdot\: 2-2x\mleft(-x\mright)-2x\cdot\: 2+5\mleft(-x\mright)+5\cdot\: 2 \\ =-7x^3+16x^2-9x+10 \end{gathered}[/tex]Thus, the answer is:
[tex]=-7x^3+16x^2-9x+10[/tex]