(0) Obligation:

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

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

Q is empty.