Pneumothorax is a condition of the lungs where a large amount of air gets caught up in the pleural cavity…