Law of Conservation of Mass:
Mass is neither Created nor Destroyed.
So basically, the mass of any element (the example here is Sodium Chloride) at the start is = to the mass of the element at the finishing point.
We add the mass:
23+35.5=58.5g
In conclusion, the mass of Sodium Chloride formed is 58.5g
Its as simple as that!