Envision your 3 shelves as a stack.
Always connect circles to squares.
One controller SAS port connects to the top of the stack on the A side of the IOMs; one SAS port connects to the bottom of the stack on the B side of the IOMs.
Daisy-chain between the shelves on both the A and B sides.