Polyatomic ions are groups of atoms bonded together that carry a collective charge, essential in…