From sorting clothes by color and fabric type and figuring out the amount of detergent…