(0) Obligation:

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

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

Q is empty.