When an alkaline earth metal, M, reacts with oxygen the formula of the compound produced will be

AM₂O
BMO
CM₂O₃
DMO₂
EM₃O₄