Use the Pythagorean theorem to find the length of the diagonal, or the hypotenuse of an imaginary triangle. 30^2 + 40^2 = 2500, which is 50^2. So, the magnitude is 50.
Answer: An atom that gains or loses an electron becomes an ion. If it gains a negative electron, it becomes a negative ion. If it loses an electron it becomes a positive ion