Detrital rocks are classified based on which of the following?

W) Mineral composition

X) Grain size only

Y) The conditions in which they formed

Z) Grain shape, grain size, and sorting
Z) GRAIN SHAPE, GRAIN SIZE, AND SORTING