During a chemical reaction, 25g of a solid is reacted with 15g of a liquid. The reaction bubbles and produces a lot of gas. After the reaction is over a scientist weighs the solution and finds that it has a mass of 35g. What is the mass of the gas that was produced?
A. 0g
B. 5g
C. 20g
D. 40g