This is how we can find the inverse of g(x) = x - 5/2
Replace g(x) with y.
y = (x - 5)/2
Swap x and y.
x = (y - 5)/2
Solve for y.
Multiply both sides by 2.
2x = y - 5
Add 5 to both sides.
2x + 5 = y
Replace y with g^-1(x)
g^-1(x) = 2x + 5