Magnesium is a very important element of the human diet. An adult's body contains about 24 grams of magnesium, with…