to which group in the periodic table does element m belong?

a certain element m is a main group metal that reacts with chlorine to give a compound with the chemical formula mcl2 and oxygen to give the compound mo. to which group in the periodic table does element m belong?

the formula of this compound suggests that m is a +2 cation.  this is determine by considering the formulas of the compounds given.   it forms a neutral compound with the formula mcl2. cl is a -1 anion.  in order to form a neutral compound with m, we have a determine the charge of m.
 
  m  +  2 cl- = 0
  m   +  2 (-1) =0
        m=+2
 
it also forms a neutral compound with the formula mo. o is a -2 anion. in order to form a neutral compound with m, we have a determine the charge of m.
 
   m + 1 o-2 = 0    m + (-2)   = 0   
   m = +2
 
now, determine which metals on the periodic table form +2 cations (hint: column 1, alkali metals form +1 cations)