(0) Obligation:

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

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

Q is empty.