X-ray and Infrared Symphony of Chandra and Webb Unveiling the Secrets of Galaxies and Nebulae