A mixture of {\rm NaCl} and {\rm NaBr} has a mass of 2.10{\rm g} and is found to contain 0.71{\rm g} of {\rm Na} What is the mass of {\rm NaBr} in the mixture?

Let X = mass NaCl and

let Y = mass NaBr
two equation in two unknowns.
----------------------

X + Y = 2.10g
X(atomic mass Na/molar mass NaCl) + Y(atomic mass Na/molar mass NaBr) = 0.71g

Solve for X and Y.