You can put this solution on YOUR website! Pick any function you want. Try, see if it works for your function. If not, pick a different kind of function.
g(f(x))=f(g(x))=x means that f(x) and g(x) are inverses.
BIG HINT: a function for a line will work, as long as the function is neither horizontal nor vertical line.