They are both created by waves of different forms of energy... sound is the oscillation of other substances, called a medium, while the electromagnetic waves are oscillating through electromagnetic energy.
Force = (mass) x (acceleration) (Newton's second law of motion)
Divide both sides of the equation by 'acceleration', and you have
Mass = (force) / (acceleration)
Mass = 17 newtons / 3.75 meters per second-sqrd = 4.533 kilograms (rounded)
The magnetic force is a consequence of the electromagnetic force, one of the four fundamental forces of nature, and is caused by the motion of charges.