Snakes might eat grains but it also eats grasshoppers that makes it a consumer. Frogs eat grasshoppers also and similarly it is also a consumer. A person might say that from this the answer surely is "both eat grasshoppers" But the answer is "both are consumers" since eating of grasshoppers is a feature of consumers.