You can put this solution on YOUR website! Simplify each of the functions, and then find inverse of either; or once simplified, compose one with the other and solve for the result of that simplified. Is it x? Just do it!
Your functions as you listed:
One can judge this far that g and f are NOT inverses of each other.
Try either composition. ------as simple as can be made. This did not produce the required
result of x.