What is this

I coughed this up earlier today,idk if it’d help but my tonsils are swollen too if that has anything to do with that😕