Notice how the two rim magnets repel each other to opposite sides of the central magnet.
(the two rim magnets; repel; each other; to opposite sides of the central magnet)
the two rim magnets
repel
each other to opposite sides of the central magnet