Two poles that are the same, for instance, two north poles, will repel each other and two poles which are opposite, for instance, north and south will attract each other.
(Two poles; are; the same) (two north poles; will repel; each other) (two poles; are; opposite) (north and south; will attract; each other)
Two poles two north poles two poles north and south
are will repel are will attract
the same
each other
opposite
each other