Answer:
Well you should know the formula and valency of each element first,
Sodium
formula - Na
valency - +1
Oxide
formula - Oxygen - O
valency - (-2)
Since the charge of the compound has to be 0 (zero)
2 atoms of sodium (+2) are required to neutralize the effect of the one oxygen atom (-2) ----------- [2 + (-2) = 0]
Na2O