The definition of the inverse function states that
Therefore,
To transform x/2+2 into x we need to follow the steps below
1. Subtract -2 to obtain x/2
2. Multiply by 2 to obtain x.
Therefore, the inverse function is
If this is indeed the answer, it has to satisfy the identity above,
Therefore, the answer is
The answer is 2x-4