notice, the inverse set is just, the same set with the x,y turned to y,x, backwards.
is it a one-to-one? well, for a set to be a one-to-one, it must not have any x-repeats, that is, the value of the first in the pairs must not repeat, and it also must not have any y-repeats, namely the value of the second in the pairs must not repeat.