The correct option is B Magnet B moves away from magnet A
Opposite poles attract each other and similar poles repel. Here the north pole of magnet A is facing the north pole of magnet B, which means similar poles are facing each other. So as we move magnet A towards right, magnet B will repel and will move away from magnet A.