In biology the relationship of what eats what and how energy passes through an ecosystem is called a food chain. Pyramids can help give us an overall picture of a particular food chain.
A pyramid of biomass is always shaped like a pyramid because the biomass always goes down from one trophic level to the next.