How do I solve and what would the answer be?

Given:
The function is given as,
[tex]f(x)=\frac{2}{x-5}[/tex]The objective is to find the inverse function.
Explanation:
The given expression can be written as,
[tex]y=\frac{2}{x-5}\text{ . . . . . (1)}[/tex]The inverse of a function can be calculated by interchanging the x and y variables in equation (1).
[tex]x=\frac{2}{y-5}\text{ . . . . . (2)}[/tex]Now, solve for y in equation (2).
[tex]\begin{gathered} x(y-5)=2 \\ y-5=\frac{2}{x} \\ y=\frac{2}{x}+5 \end{gathered}[/tex]Hence, the inverse function is y = (2/x) + 5.