A function refers to a set of ordered pairs such that if (x,y) f
and if (x,z) f,
then y=z. Such a function is essentially a look up table.
The first set of numbers follows this rule, but in the second
set you have (2,4) and (2,5), so y ≠ z (where
y=4 and z=5).