a compared of magnesium nitric contains 72% of magnesium and 28% of nitrogen. what is the empirical formula of magnesium nitric.

and the answer is Mg 3 N 2

how to do the solution. ​