You are given two cuboids A and B. As you bring them closer they get attracted to each other. So you can conclude that:
1. They both can be magnets, or
2. Any one of them can be a magnet and the other can be magnetic material.
Both statements are correct
They both can be magnets or any one of them can be a magnet and the other can be magnetic material.