Of the two following equations which one shows the conservation of matter? Explain why either A or B is the correct answer:

6H2O + 6CO2 → C6H12O6 + 6O2
6H2O + 6CO2 → C3H6O3 + 3O2

someone pls help I can't figure this out