(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

g(b) → f(b)
f(a) → g(a)
ba

Q is empty.