The correct option is C Both A and B
As per thermodynamics, a system can be open or closed. An ecosystem is an open system because an open system is a system in which energy and nutrients are exchanged between the physical environment and living organisms. In a closed ecosystem, the waste product of an organism is used by the other organism, like decomposers. Therefore, the correct answer is option C.