When two permanent magnets are placed adjacent to each other then they will exert magnetic force on each other.
There are four fundamental forces in nature
1. Gravitational force
2. Electromagnetic force
3. Weak Nuclear force
4. Strong nuclear force
So here magnets will exert two fundamental forces on each other Electromagnetic force and Gravity
#2
mass is defined as the composition or amount of substance while we can define weight as gravitational force of earth of the given object
Now when we transport an object from surface of earth to space far away from any planet then the amount of substance or mass will not change while the weight of the substance will decrease to zero because there is no gravity at this position
So we can say
mass = constant and will remain same
Weight = mass * gravity = 0
The weight of the object changes, the mass stays the same