From the scenario given in this question, we can conclude that the DEPENDENT VARIABLE IS THE DEVELOPMENT OF THE ROOT CROPS, that is, how big or small they are, while the INDEPENDENT VARIABLE IS THE COMPOSTS USED.
A dependent variable is a variable whose value depend on the value of independent variable, it is the variable that the researcher is interested in. In the question given here, the scientists are interested in the development of the root crops.
An independent variable is the variable that the researcher changed or controlled. A change in independent variable cause a corresponding change in dependent variable. In this question, the scientists changed the type of compost used and the type of compost used in turn determine how big or small the root crops turn out to be.