The reactants used in photosynthesis are H2O(water), CO2(carbon dioxide), and light(sunlight) energy. These are used to produce glucose for the plant and oxygen which is released.
Dacitic magma is formed by the subduction of young oceanic crust under a thick felsic continental plate. Oceanic crust is hydrothermally altered causing addition of quartz and sodium.