During a neutralisation reaction, the positive hydrogen ions from the acid react with the negative hydroxide ions from the alkali to form molecules of water.
To work out the formula of the salt, take the positive ion from the base, such as sodium from sodium oxide (Na2O), and the negative ion from the acid, such as chloride from hydrochloric acid (HCl), and combine them together.