When opposite poles of two magnets are brought together, the poles