How would you calculate the % yield of hydrogen if 40.0 grams of magnesium react with an excess of nitric acid producing 1.70 grams of hydrogen gas. mg + 2hno3 → mg(no 3 ) 2 + h?