Write balanced chemical equation for the following reactions:

Write balanced chemical equation for the following reactions:
(i) Silver bromide on exposure to sunlight decomposes into silver and bromine.
(ii) Sodium metal reacts with water to form sodium hydroxide and hydrogen gas.