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