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