In mathematics, a function is a relation in which each x-term corresponds to exactly one y-term.
Let me show you an example.
{(7,15) . (7,17) (8,19) (28,21)}
In the relation shown above, this would not represent a function. This is because the x-term 7 corresponds to two different y-terms.