Given the function
[tex]g(x)=3x-2[/tex]Get g(8) by substituting x = 8 into the function;
[tex]\begin{gathered} g(8)=3(8)-2 \\ g(8)=24-2 \\ g(8)=22 \end{gathered}[/tex]Get g(-5) by substituting x = -5 into the function
[tex]\begin{gathered} g(-5)=3(-5)-2 \\ g(-5)=-15-2 \\ g(-5)=-17 \end{gathered}[/tex]Take the difference in the result to have;
[tex]\begin{gathered} g(8)-g(-5) \\ =22-\mleft(-17\mright) \\ =22+17 \\ =39 \end{gathered}[/tex]Hence the difference between the given functions is 39