If f(x)=14x +2 and g(x)=1/2x-3 find g(f(x))

[tex]g(f(x)) = 7x -2[/tex]
Given:
[tex]f(x) = 14x +2[/tex]
[tex]g(x) = \frac{1}{2}x -3\\[/tex]
[tex]g(f(x)) = \frac{1}{2}(f(x)) -3 \\ g(f(x)) = \frac{1}{2}(14x +2) -3 \\ g(f(x)) = (\frac{1}{2})14x+(\frac{1}{2})2 -3 \\ g(f(x)) = 7x +1 -3 \\ g(f(x)) = 7x -2[/tex]