Describe what would happen if hydrochloric acid reacted with a metal, for example magnesium. Write a word equation for this reaction.