Pneumonia is a common respiratory infection that affects the lungs, causing inflammation and making it difficult for oxygen to reach…