Calculate the mass of silver bromide produced from 31.5 g of magnesium bromide in the following reaction:
2AgNO₃ + MgBr₂ → 2AgBr + Mg(NO₃)₂