the dependent variable, as its name says it depends on the other variable
and the independent variable is the one that we can control or vary
the independent variable is the detergent because it is what we change or vary
and the dependent variable is the effect of the detergent since that is what we get