A function is a relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output.
Here the domain of the relation is {3,x,9,5}.
The given relation is a function only if x not takes any of the value 3, 9 or 5.
So, option B is correct.