Dear Student,
Magnesium and manganese are two metals that release hydrogen gas from highly diluted nitric acid. These two metals are good reducing agents that is the reason why they are able to react with dilute nitric acid to form hydrogen.
Regards