A certain compound contains magnesium, carbon and nitrogen in the mass ratio 12:12:14. The formula of the compound is: