[guided]To prove that $\mathfrak a + I$ is a Lie subalgebra, we must verify two things: it is a vector subspace of $\mathfrak g$, and it is closed under the Lie bracket of $\mathfrak g$.
First, since $\mathfrak a$ and $I$ are both $k$-linear subspaces of $\mathfrak g$, their sum
\begin{align*}
\mathfrak a + I = \{x + u \in \mathfrak g : x \in \mathfrak a,\ u \in I\}
\end{align*}
is a $k$-linear subspace. Indeed, if $x_1,x_2 \in \mathfrak a$, $u_1,u_2 \in I$, and $\lambda,\mu \in k$, then
\begin{align*}
\lambda(x_1+u_1)+\mu(x_2+u_2)
= (\lambda x_1+\mu x_2)+(\lambda u_1+\mu u_2),
\end{align*}
where $\lambda x_1+\mu x_2 \in \mathfrak a$ and $\lambda u_1+\mu u_2 \in I$.
Now take arbitrary elements $x+u,y+v \in \mathfrak a + I$, where $x,y \in \mathfrak a$ and $u,v \in I$. The Lie bracket is bilinear, so
\begin{align*}
[x+u,y+v] = [x,y] + [x,v] + [u,y] + [u,v].
\end{align*}
The term $[x,y]$ belongs to $\mathfrak a$ because $\mathfrak a$ is a Lie subalgebra. The remaining three terms belong to $I$ because $I$ is an ideal of $\mathfrak g$ and $x,y,u,v$ are all elements of $\mathfrak g$. Thus the whole bracket is the sum of one element of $\mathfrak a$ and one element of $I$, so
\begin{align*}
[x+u,y+v] \in \mathfrak a + I.
\end{align*}
This proves that $\mathfrak a + I$ is closed under the Lie bracket, and therefore it is a Lie subalgebra of $\mathfrak g$.[/guided]