If f(x) is a one-to-one function f(8)=-2 then which of the following points must lie on the graph of its inverse, I.e y=f^-1(x)

For a function, the value of y is known from the value of x. The inverse of a fuction differs from the function in that the x coordinates and y coordinates of the function are interchaged or switched. Thie means that if a function has the point, (x, y) on the graph of the function, then (y, x) is a point on the graph of its inverse.
Considering the coordinate of the given function,
x = 8 and y = - 2
Thus, by interchanging it, the point that must lie on the graph of its inverse is
(- 2, 8)
The correct option is D