the graph of f(x) would include points (-2, 8)(-1, 5)(0, 4)(1, 5)(2, 8)
These points straddle the y-axis
the graph of g(y) would include points (8, 2)(5, 1)(4, 0)(5, -1)(8, -2)
These points straddel the x-axis
the graph of g(y) is a 90 degree clockwise rotation of f(x)
or
a reflection over the line y=x