#1. An element or ion that has lost two electrons must have a net charge of 2+, because it has two more protons than electrons, therefore the answer is Mg2+
#2. aluminum ions have an oxidation state of 3+ and fluoride has an oxidation state of 1-, therefore I’m order for the charges to cancel you need 3 fluoride ions.
Therefore, the answer is AlF3