Yea the right hand coil rule, its weird to picture at first, but its just a magnet with a coil around it. So, for the left magnet on (B) your fingers will curl into the page and thumb points to the left, so south pole on the left magnet. Same for the other side, thumb will point left hence it...