When you eat something the energy from that thing is passed on to you. For example if a a mouse eats grass. The energy from the grass is passed on to the mouse. When a snake eats the mouse the grasses energy AND the mouses energy is passed on to the snake and so forth.
Hope this helps.