The energy of an electron in a hydrogen atom is given by the equation:
\[
E_n = - \frac{13.6 \text{ eV}}{n^2}
\]
where \(n\) is the principal quantum number.
For lithium ion (Li$^+$), we can use the modified formula:
\[
E_n = - \frac{13.6 \text{ eV}}{n^2} \times Z^2
\]
where \(Z\) is the atomic number, which is 3 for Li$^+$.
The second excited state corresponds to \(n = 3\).
So, for Li$^+$, the energy associated with the second excited state (\(n = 3\)) is:
\[
E_3 = - \frac{13.6 \times 3^2}{3^2} = - 2.18 \times 10^{-18} \, \text{J}
\]