Step-by-step explanation:
Options A and B have wrong reasons because to feed on producers means that it is a primary consumer.
Option C is wrong because organism X only feeds on cornstalks.
Organism Y does feed on the grasshopper, which feeds on the cornstalks. It is a secondary consumer.
Hence Option D is correct.