equation for a line is y=mx + b
to find inverse switch up the y and the x.
x = my + b and solve for the new y
y =2/x-5 now is x = 2 / y-5 multiply each side by y-5
2= xy-5x add 5x to both sides
2 + 5x = xy divide each side by x
(2/x) +5 = y is your inverse
note that (2/x)+5 is different from 2/x+5 because the 5 is not being divided by 2 only the x so this is false.