Completion settings:
Axiom: aaa=a.
Defines rule #1.
Axiom: aaba=abb.
Flip LHS and RHS.
Defines rule #2.