According to the law of conversion of mass, the mass of a closed system is neither made or taken away in a physical change. It is the same for a chemical change as well.
Therefore, the mass of the substance remains 8g.
Best of Luck!
7.9m questions
10.5m answers