(0) Obligation:

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

f(a, x) → g(a, x)
g(a, x) → f(b, x)
f(a, x) → f(b, x)

Q is empty.