When magnesium (mg) metal is placed in hydrochloric acid (hcl), it forms magnesium chloride (mgcl2) and a gas. what gas is formed in this reaction?