Answer: Bassically, certain gasses like CO2 (Carbon Dioxide) that come from stuff like burning fossil fuels and global warming, they heat up the earth, are wastes and are used as fuel.
Greenhouse gas (GHG) are gases that trap heat in earth's atmosphere. They are named after greenhouse, a place with windows that allows sunlight to enter. This sunlight creates warmth and the greenhouse doesn't let the warmth escape. That's also the way greenhouse gases act.
They allow the sunlight to pass through the atmosphere and don't let that heat escape thus keeping the earth from getting too cold. Some of these gases are water vapours, carbon-di-oxide, ozone and methane. Greenhouse gases help in keeping the earth heat but due to human activities there has been an increase these gases in the atmosphere leading to global warming.
Photosynthesis is the process of where plants and other organisms use sunlight to get foods from water and carbon dioxide. Photosynthesis in a plant involves green pigment and generates oxygen.