Write the function rule g(x) after the given transformation of the graph of f(x)=3x

reflection in the x-axis; vertical compression by factor of 1/6

reflection: (x,y) → (x,-y)

compression: (x,y) → (x, 1/6 y)
so,
g(x) = 1/6 * -3y = -1/2 y