Write the reactants and products of the following reactions.
i. Sodium + water → sodium hydroxide + hydrogen
ii. Magnesium + oxygen → magnesium oxide