(0) Obligation:

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

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

Q is empty.