A student studied four organisms found in a pond and recorded how each one obtains its food.
| Organism | Has a pigment that traps light | How it obtains food |
|---|---|---|
| W, a water plant | yes | makes sugar from carbon dioxide and water, using sunlight |
| X, a fungus | no | breaks down dead leaves and absorbs the simple substances formed |
| Y, a water snail | no | eats W |
| Z, a bacterium | yes | makes sugar from carbon dioxide and water, using sunlight |
Which grouping of these organisms is correct?

