Another way to work it out is if we give our magnets a specific form. For example, the magnets might be made of solenoids. In this case, you can work out the Lorentz force on the charged particles in the wire of the solenoid, and you can work out the force on the 'magnet' (i.e. solenoid), which gives the same answer as the other method.
