In both [Co(NH3)6]3+ and [CoF6]3−Co is present as Co3+ Thus, the electronic configuration of Co is 27Co=[Ar]3d7,4s2 27Co3+=[Ar]3d6,4s0
In case of [Co(NH3)6]3+NH3 is a strong field ligand, so pairing of electrons in 3d-orbital takes place. 27Co3+=[Ar]3d6,4s0
In [CoF6]3−,F is a weak field ligand, thus does not cause pairing. Hence, 27Co3+=[Ar]3d6,4s0