A function relates an input to an output. A function has every possible input value mapped to an output value and it only have one relationship for each input value. Therefore,
The sets of all possible values are as follows
It cannot be (2, 3) and (3, 2) because same inputs values cannot be mapped to 2 different output values. Notice that the input values 2 and 3 has already been mapped to another output values which are 1 and 3 respectively.