(0) Obligation:

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

ag(c)
g(a) → b
f(g(X), b) → f(a, X)

Q is empty.