A function can have only one y-value for each x-value.
That is there can be only one point of the type (2,_) and only one point of the type (3,_), and only one point of the type (4,_), and only one point of the type (5_).
I will give you an example of something which is not a function: { (2,4), (3,2), (4,6), (3,5), (5,4) }.
This is not a function because there are two points that are of the type (3,_). In a function, each x-value can be used only once; you can't have both (3,2) and (3,5).
------------------------
However, the y-value can be used more than once; this is a function: { (2,4), (3,6), (4,2), (5,4), (6,4)}.
The y-values can be used as often as wanted -- but each x-value can be used only once.