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

abxy

abxy

axy

abxy

abxy

'a' and 'b c' should be paired with 'x' and 'y z' repectively:

a b cy z

'a b' and 'c' should be paired with 'x y' and 'z' repectively:

a b cz

'a b' and 'c d' should be paired with 'w x' and 'y z' repectively:

a b c dy z