Solid sodium combines with solution of magnesium fluoride to form sodium fluoride solution and magnesium metal is adding hydrochloric acid into form magnesium chloride solution and hydrogen gas. A solution could be copper oxide is combined with solid carbon. This forms copper metal and carbon dioxide gas.