hi and thanks for the query,
it does look like you have developed lower respiratory tract
do not ignore it anymore.
it is possible that there is infection of the pleura
that covers the lungs which is responsible for the sharp pains that you are experiencing.
you will require a chest xray and culture and sensitivity of the green mucus.
see a doctor as soon as possible.
Dr Rajkishori Godhi