HI, welcome to health care magic
In most cases the illness is viral, the presence of green sputum does not mean that the illness is bacterial. Green sputum occurs in viral illnesses as well.
You can use a mucolytic
to help break up the mucus, rest your voice, drink fluids, you can also use a cough
suppressant to help with the cough.
If you continue to feel unwell, you should consider visiting your doctor
I hope this helps