then the energy is transfered to the secondary consumer.Again the energy from secondary consumer is transferred to the tertiary consumer then the energy from tertiary comsumer is transfered to the decomposer and finally the energy of decomposer is transfered to producer.