Answer
$f(a) = b$ and $g(b)=a$
Work Step by Step
The definition of an inverse function is such that the input and output pairs of one function end up being the output and input pairs of the inverse, in that order. Thus function $f$ gives $a->b$ and $g$ gives the opposite $b->a$