(0) Obligation:

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

h(f(f(x))) → h(f(g(f(x))))
f(g(f(x))) → f(f(x))

Q is empty.