Magnesium (Mg) is an essential mineral important for a wide range of bodily functions, including muscle and nerve function, heart…