The data set that represent a function is in option B
What is a function?
A function is a relation between a set of inputs and a set of possible outputs with the property that each input is related to exactly one output.
In simpler terms, a function assigns a unique output value to each input value.
Comparing the data sets given, only option B sticks to the property of each input is related to exactly one output.