The food-chain is starting with X. That means X is a plant (Producers). X is eaten by Y. So, Y must be a Herbivore (for example, animals like deer, rabbit, goat, etc.). And Y is eaten by Z. So, Z must be Carnivore (for example, animals like wolf, lion, hyena, etc.).