Show the transfer of electron between the following elements to form ionic bonds:

1. Ca and F
Ca - valence electron - 2
F - Valence electron - 7

2. Mg and O
Mg - valence electron - 2
O - 6

[ Pls answer it correctly, I will report you if your answer is nonsense ]