What is the likely formula of compound formed between element M in group two and…