let the metal be M with atmic wt. be x
so
3M + N2 ---->M3N2
3x ---->3x+28 ; Atomic mass of N=14
so,
12/3x = 14.8/(3x+28)
12/14.8 = 3x/(3x+28)
which in solving for x gives 40,
the metal is calcium(atomic mass=40) and its nitride is Ca3N2