This intricate design is quite puzzling. Only after counting the buttons did I figure out how A and B play together to form the dress.
However, all the buttons of set B must be in on top of set A whereas the left side of B must be below A. There can't be connection between both ends of B since on is under and one is above B.
FrontFrontBackDressGarment BGarment ARibbon on the backBack