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