A student forgets to weigh a mixture of sodium bromide dihydrate and magnesium bromide hexahydrate. Upon strong heating, the sample loses 252.1 mg of water. The mixture of anhydrous salts reacts with excess AgNO₃ solution to form 6.00X10⁻³ mol of solid AgBr. Find the mass % of each compound in the original mixture.