Electron affinity is defined as the change in energy (in kJ/mole) of a neutral atom (in the gaseous phase) when an electron is added to the atom to form a negative ion. In other words, the neutral atom's likelihood of gaining an electron.
When an electron is added to a neutral atom, i.e first electron affinity, energy is released; thus, the first electron affinities are negative. However, when an electron is added to a negative ion, i.e. second electron affinity, more energy is required. Thus, more energy is released to add the electron into an ion because the negative ion has to force the electron to go into its electron orbital; thus, the second electron affinities are positive.