Welcome to HCM,
I have gone through your history,you are suffering for so long, it is not clear you took some treatment or just neglecting your health.
You seem to have Infection in chest may be started with simple viral infection but greenish sputum points to secondary bacterial infection.
You should consult a good Physician and after examination and investigations like Complete Blood count
chest,Sputum for stain and culture,blood sugar level, liver
proper antibiotics along with cough expectorant and paracetamol
if there is fever will be guideline for treatment and your physician will know better.
Hope there is nothing serious and you will improve in some time, but please take care of your health and visit Physician as soon as possible.