Methane is synthesized commercially by the distillation of bituminous coal and by heating a mixture of carbon and hydrogen. It can be produced in the laboratory by heating sodium acetate with sodium hydroxide and by the reaction of aluminum carbide (Al4C3) with water.
Hope this helps
Have a great day
~Zero~