Completion settings:
Axiom: aaa=aa.
Defines rule #1.
Axiom: aab=ba.
Flip LHS and RHS.
Defines rule #2.