(0) Obligation:

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

h(X) → g(X)
g(a) → f(b)
f(X) → h(a)
ab

Q is empty.