Magnesium (Mg) is second only to potassium in its concentration within cells. It is crucial to many functions, including energy…