Solution:
(a) To get aluminium metal, aluminum oxide is electrolyzed in a molten condition. During the process, oxygen gas is produced.
(b) To produce sodium metal, sodium chloride is electrolyzed in a molten condition. During this procedure, chlorine gas is produced.