'a' and 'b' should be paired with 'x' and 'y' respectively:

abxy

abxy

abxy

a bxy

abx y

'ab' should be paried with 'xy':

abxy

abxy

'a b c' should be paried with 'x y z':

a wb cx y z

a b wcx y z

a wb cx y z