(0) Obligation:

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

g(f(x), y) → f(h(x, y))
h(x, y) → g(x, f(y))

Q is empty.