A function is fdefined that all values in the independent variable (x) has an only image in the dependent variable (y). Since the equation x=5 is a vertical line then there are multiple values in y for x=5 then it only represents a relationship not a function
Answer is D.