Both of these begin when photosynthesizing organisms take in solar energy and INORGANIC nutrients to make ORGANIC nutrients.
Plant is one of organism that capable to do photosynthesize. In order to do so, plant will take inorganic material such as nitrogen and water from the soil. Inorganic mean that the substance doesn't have C-H bond. Then it will produce sugar/carbohydrate, an organic nutrient.