Light energy is trapped inside the chlorophyll in the plants and carbon dioxide enters through the stomata. Water enters the plant through its roots. The carbon dioxide and water is converted into glucose and oxygen by energy from sunlight of the chlorophyll.