Alkaline earth metal are the elements present in II group in the periodic table and are known as 'Metals' and have a charge of +2.
Alkaline earth metals - Be , Mg Ca, Sr , Ba, Ra
Halogens are present in VII A group in the periodic table and are 'Non-metals' and have a charge of -1.
Halogens - F, Cl, Br, I, At
When Alkaline earth metal (metals) combine with Halogens (non-metals) the compound formed will be ionic compound and the formula of the compound will be based on the charges of the element.
When we write the formula of the ionic compound the charges of the elements get criss crossed.
For example - Mg (Alkaline earth metal) have a charge of +2 and Cl (Halogen) have a charge of -1 and when they combine to form the formula their charges get criss crossed and we will get
or 
When an alkaline earth metal, A, reacts with a halogen, X, the formula of the Ionic compound formed should be 
Yes..? I don’t understand what you’re trying to ask mate.
Explanation:
protons have a relative charge of +1, they are located in the nucleus and the carry a positive charge
the electrons are negatively charged and have a charge of -1 . They are found orbiting on the shells .the electrons have a negligible mass of 1 / 1840
the neutrons have no charge they are located in the nucleus of an atom .
Answer:1:En química, el número másico o número de masa es la suma del número de protones y el número de neutrones del núcleo de un átomo. Se simboliza con la letra A (el uso de esta letra proviene de alemán Atomgewicht, que quiere decir peso atómico, aunque sean conceptos distintos que no deben confundirse).
2: