See your MD
i'm not sure what the question is, but if you are coughing yellow liquid, you certainly need to see a doctor. This is a sign of an infection.
It could be a sinus issue, or a lung issue as well. It may only be coincidental to brushing your teeth and not actually related. I hope this helps you.