Electron affinity is the energy change, when an electron is added. When O− changes into O2−, the electron affinity is positive i.e., change is endothermic. The reason is that O− repels the incoming electron due to similar charge, hence it needs energy to accept the electron. Hence electron affinity is positive.