A function is written as g(x) where the number inside the set of parenthesis is the X value and the output value ( what the function would equal) is the Y value.
In your question you have -2 = g(8)
The number in the parenthesis is 8, so this is an X value and the function equals -2, which is the Y value.
The point would be (8,-2)