The main functions of the lungs include extracting oxygen from air and discharging waste elements (mainly carbon dioxide) from the…