(0) Obligation:

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

f(f(a, f(x, a)), a) → f(a, f(f(x, a), a))

Q is empty.