Methane is prepared in the laboratory by heating a mixture of sodium ethanoate with soda…