(0) Obligation:

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

f(f(a, b), x) → f(a, f(a, x))
f(f(b, a), x) → f(b, f(b, x))
f(x, f(y, z)) → f(f(x, y), z)

Q is empty.