i need help understanding and finding the solution for (g(2))

In order to find f(g(2), we need to find g(2) first. So we have
[tex]g(2)=3(2)-5[/tex]which gives
[tex]\begin{gathered} g(2)=6-5 \\ g(2)=1 \end{gathered}[/tex]So, we have that
[tex]f(g(2))=f(1)[/tex]Then, by replacing the number 1 in the place of x on f(x), we get
[tex]f(1)=2(1)^2+1[/tex]which gives
[tex]f(1)=2+1=3[/tex]Therefore, the answer is:
[tex]f(g(2))=3[/tex]