does the table represent a function or just a relationship and why?

The correct answer ois option B.
The table only represents a relationship because for each value of x there is a value for y.
But, it is not a function because there is no unique value for y for every value of x.