Find the inverse of the given function.

g(x) = 2x + 2

(x-2)/2