I am confused about the vinegar or baking soda. How much do you put, and you do it with no clothes in it, or add the vinegar to the loads?

Also I have gunk on the plastic ring where it seals on the front loader, how can i prevent this?