Which diagram below shows the pathway of energy through an ecosystem?

A.producer → carnivore → herbivore

B.producer → herbivore → carnivore

C.herbivore → producer → carnivore

D.carnivore → herbivore → producer