They are inverses.
The easiest way to solve this is to take the g(x) equation and switch the g(x) with the x. Then solve for your new g(x). Since it looks just like f(x) after doing that, it is an inverse.
Where is the graph?.........
-8t+6+6t=5t-2
-2t+6=5t-2
-2t-5t=-2-6
-7t=-8
-7 -7
T=1.14 or 1 1/7
the period for one wave is 8π