H₂ = 2 g/mol
1 x 2 = 2 g of H₂
________________________
K = 39.09 g/mol
2 x 39.09 = 78.18 g of K
________________________________
Mg = 24.3 g/mol
3 x 24.3 = 72.9 g of Mg
_________________________________
He = 4 g/mol
4 x 4 = 16 g of He
___________________________________
Order : K , Mg , He and H₂
hope this helps!