I am a student of BSE General Science.

Anyways so, according to Gauss' Law of Electromagnetism, when two magnetic pole  have different charges and have a distance that is enough to interact with each other it attracts. On the other hand, when two magnetic pole have same charges and have a distance that is enough to interact with each other it repels.
77 4 77