We should need to know the polarities in magnet in other to attrack them of repel them. Positive and Negative are the two polarities in magnet. If Positive and negative will combine they attrack each other while if the Positive to Positive it will repel. or short if they ar opposite they attract if they are same they repel