See graph and explanation below
Step-by-step explanation:

Plotting both graphs:
To prove the functions are inverse of each other:
At any coordinate, the value of x (input) of one function is the the value of y (output ) of the second function and vice versa. The value of x (input) of second function is the the value of y (output ) of the First function.
for f(x): when x = -2.5, y = 0
for g(x): when x = 0, y = -2.5
for f(x): when x = 0, y = 5
for g(x): when x = 5, y = 0