what are the types of elements involved in the formation of hydrogen chloride and carbon dioxide​