Plants form organic matter from water and carbon dioxide in the presence of sunlight and release oxygen, a process known as photosynthesis. The energy required to carry out chemical reactions in plants is obtained from sunlight. This energy is stored