As, magnetic field lines go from North to South pole outside a magnet and here the lines are coming out from pole B and entering into pole A.
So, A = South Pole and B = North Pole.
As, magnetic field lines go from North to South pole outside a magnet and here the lines are coming out from pole B and entering into pole A.
So, A = South Pole and B = North Pole.