A is a function because you have a different value for x. B is not a function because you can't have the x value have a number twice, in this case it's 2. C is not a function for the same reason as B. D is a function because there is always a different x value.