Elements X and Y combine to make a compound. Element X loses two electrons, while element Y gains one electron. What charges do the ions of elements X and Y have, and what is the formula of the compound?
- Acharge on X: $2+$; charge on Y: $-$; formula: $X_2Y$
- Bcharge on X: $2+$; charge on Y: $-$; formula: $XY_2$
- Ccharge on X: $2-$; charge on Y: $+$; formula: $X_2Y$
- Dcharge on X: $2-$; charge on Y: $+$; formula: $XY_2$