are these magnetsattracting or repelling each other?how can you tell

Which magnets?