You have greenish sputum then you must get done a chest x ray done and get the chest examination done by doctor as there is most probably infection inside and which need to be treated.
You may require antibiotics and mucolytic
If you smoke stop smoking
There could be only bronchitis
for which you may require steroids
so that the inflammation settles down.
in doubt do reply