IF the function defined by the following is one to one, find it’s inverse

The inverse function is (5, -2), (1, 3) and (8, 5)
Given the coordinate of the function expressed as (-2, 5), (3, 1) and (5, 8)
The function is a one-to-one function since each domain values has a unique codomain.
In order to determine the inverse of the coordinate function, we will need to interchange the coordinates values as shown
[tex](x,y)\rightarrow(y,x)[/tex]Based on this transformation, the inverse of the function will (5, -2), (1, 3) and (8 5)