The solution for this problem would be:
We are looking for the grams of magnesium that would have been used in the reaction if one gram of silver were created. The computation would be:
1 g Ag (1 mol Mg) (24.31 g/mol) / (2mol Ag)(107.87g/mol) = 0.1127 grams of Magnesium