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 isrelated to. For example, consider thefollowing sets X and Y.