We know,
Number of lone pairs =Total number of electrons available - Number of bonded electrons2
In ClF3, the total number of electrons around the central atom =7+3=10
Number of lone pairs on the central atom=10−62=42=2
In ClF−2, the total number of electrons around the central atom =7+2+1=10
Number of lone pairs on the central atom=10−42=62=3
In ClF5, the total number of electrons around the central atom =7+5=12
Number of lone pairs on the central atom=12−102=22=1
In ICl+2, the total number of electrons around the central atom =7+2−1=8
Number of lone pairs on the central atom=8−42=42=2
∴ClF3 and ICl+2 have 2 lone pairs of electrons on the central atom.