The correct chemical equation for photosynthesis is:
B. \( 6CO_2 + 6H_2O + \text{energy} \rightarrow C_6H_{12}O_6 + 6O_2 \)
In this equation, carbon dioxide (CO₂) and water (H₂O) are converted into glucose (C₆H₁₂O₆) and oxygen (O₂) using energy, typically from sunlight.