Pure water may be identified by its density: it will have the lowwest density of the three solutions, given that the solutes (salt and sugar) increase the density (this is the easiests and quickest way).
You can also measure the freezing points or boling points to identify the pure water because the solutes depress the freezing points and increase the boling points.
To differentiate sugar water and salt water, you can probe which one conducts electricity, because salt water is a conductor (given that it ionizes into Na+ and Cl-) but sugar water is not a conductor.
So the empirical formula is Mg3N2
Scientists should control most possible variables in experiments to get the most valid and correct data. If many variables are included in experiments it is more difficult to interpret what is causing a different outcome.
3.5 M has 3.5 moles per litre
so we have one litre, so we need 3.5 moles
moles = mass/molarmass
3.5 * 23 = 80.5