Question: how many unpaired electrons in zn2+?
Answer: Zn2+ has 0 unpaired d electrons, Co2+ has 3 unpaired d electrons. Co2+ is therefore paramagnetic and will be attracted by a magnetic field.