How can I save my shirt if I got some coffee on it?
Put some stain remover on the shirt prior to putting it in the washer  machine.
Put some stain remover on the pants prior to putting it in the washer  machine.