An independent variable is always going to be the thing deliberately changed. And the dependant is the thing that is measured.
The independent variable would be the detergent type.
And the dependant would be the degree to which each shirt was cleaned.