Please find below the chemical formulas of mentioned compounds:
(a) Magnesium oxide:
Step 1 — Write each symbol with its valency
$\text{Mg}^{2+} \phantom{\nearrow} \text{O}^{2-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{2}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{O}} \Rightarrow \underset{\phantom{1}{2}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{O}} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number, ignore equal numbers & hence the formula
Therefore, we get
Formula of Magnesium oxide : $\bold{MgO}$
(b) sodium bromide:
Step 1 — Write each symbol with its valency
$\text{Na}^{1+} \phantom{\nearrow} \text{Br}^{1-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{Br}} \Rightarrow \underset{\phantom{1}{1}}{\text{Na}} \space {\searrow}\mathllap{\swarrow} \space \underset{1}{\text{Br}} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number & hence the formula
Therefore, we get
Formula of Sodium bromide : $\bold{NaBr}$
(c) calcium sulphide:
Step 1 — Write each symbol with its valency
$\text{Ca}^{2+} \phantom{\nearrow} \text{S}^{2-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{2}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{S}} \Rightarrow \underset{\phantom{1}{2}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{S}} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number, ignore equal numbers & hence the formula
Therefore, we get
Formula of Calcium sulphide : $\bold{CaS}$
(d) magnesium sulphate:
Step 1 — Write each symbol with its valency
$\text{Mg}^{2+} \phantom{\nearrow} \text{SO}_4^{2-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{2}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{SO}_4} \Rightarrow \underset{\phantom{1}{2}}{\text{Mg}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{SO}_4} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number, ignore equal numbers & hence the formula
Therefore, we get
Formula of Magnesium sulphate : $\bold{MgSO_4}$
(e) aluminium chloride:
Step 1 — Write each symbol with its valency
$\text{Al}^{3+} \phantom{\nearrow} \text{Cl}^{1-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{3}}{\text{Al}} \space {\searrow}\mathllap{\swarrow} \space \overset{1}{\text{Cl}} \Rightarrow \underset{\phantom{1}{1}}{\text{Al}} \space {\searrow}\mathllap{\swarrow} \space \underset{3}{\text{Cl}} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number & hence the formula
Therefore, we get
Formula of Aluminium chloride : $\bold{AlCl_3}$
(f) zinc oxide:
Step 1 — Write each symbol with its valency
$\text{Zn}^{2+} \phantom{\nearrow} \text{O}^{2-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{2}}{\text{Zn}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{O}} \Rightarrow \underset{\phantom{1}{2}}{\text{Zn}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{O}} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number, ignore equal numbers & hence the formula
Therefore, we get
Formula of Zinc oxide : $\bold{ZnO}$
(g) calcium carbonate:
Step 1 — Write each symbol with its valency
$\text{Ca}^{2+} \phantom{\nearrow} \text{CO}_3^{2-}$
Step 2 — Interchange the valencies
$$\begin{aligned}\overset{\phantom{2}{2}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \overset{2}{\text{CO}_3} \Rightarrow \underset{\phantom{1}{2}}{\text{Ca}} \space {\searrow}\mathllap{\swarrow} \space \underset{2}{\text{CO}_3} \\[0.5em]\end{aligned}$$
Step 3 — Write the interchanged number, ignore equal numbers & hence the formula
Therefore, we get
Formula of Calcium carbonate : $\bold{CaCO_3}$