because a function is a A relation from a set X to a set Y is called a function if each element of X is related to exactly one element in Y. That is, given an element x in X, there is only one element in Y that x is related to. For example, consider the following sets X and Y.
Which means you can but a line through the middle or the dots and it will the same count amount of dots on both sides.