Remember that for any value on the domain of a function, there can only be one value on the range that assigns to it.
We have the set:

therefore, a value of g that make it impossible for the set to represent a function can be 8, 5 or 9, since those values already have another value assigned from the range.