hahhahah noob pussy kid.
magnets are actually hard as fuck to figure out. Electromagets are easier because you can think of the "force" shit as just the force on the charges, called Lorrentz force. So a current means charges are moving, therefore you take cross product of I X B and you get the force.
Permanent magnet on permanent magnet is a fucking mistery.