$N_0/2$ atoms of $X_{(g)}$ are converted into $\ce{X^+_{(g)}}$ by energy $E_1$. $N_0/2$ atoms of $X_{(g)}$ are converted into $\ce{X^-_{(g)}}$ by energy $E_2$. Hence ionisation potential and electron affinity of $\ce{X_{(g)}}$ per atom are:
I tried solving this by unitary method, which gave ionisation potential and electron affinity as, ${2E_1/N_0}$, ${2E_2/N_0}$ respectively.
But the answer given is ${2E_1/N_0}$, ${2(E_2-E_1)/N_0}$
Can anyone please tell me where I went wrong and help me with the solution. Thanks in advance!