Count the six magicians wearing six magic hats.

Drag the top two pieces to switch their order from A-B to B-A.

Then count the magicians again.