Unlocking the Mysteries of the Triangulum Galaxy through Webb Telescope