Classify each of these as a cereal grain or legume: wheat, lentils, chickpeas, rye, corn, soybeans, peas, millet

Cereal grains:  Wheat, rye, corn, millet
Legumes: Lentils, chickpeas, soybeans, peas