I suppose they are magnetic dipoles, how would I go about finding out the forces applying between 2 of them in a specific configuration ?

Do I need to find the magnetic field and then apply the Lorentz force equation ? How would I find the magnetic field ?

Thanks !