Solution:
A greenhouse works by converting light energy into heat. Light enters the greenhouse and is trapped there by the glass and absorbed by the plants and other objects. This causes the light energy to be converted to heat energy, which is trapped inside the greenhouse.