Given f(x) = 3x +1 and (f o g)(x) = 6 - 1/2x, how do you find the function g?