Let $R=\mathbb{Z}[\sqrt{-6}]$ and $I=(2,\sqrt{-6})$ the ideal generated by $2$ and $\sqrt{-6}$.
I want to show that $I$ is a projective $R$-module by producing a short exact sequence that splits, has a free $R$-module as the middle term, and with $I$ as one of the other terms.
I first tried to produce an $R$-module homomorphism $g:R^{2}\rightarrow I$ by $(r,s)\mapsto 2r+\sqrt{-6}s$, then find another $R$-module homomorphism $h:I\rightarrow R^{2}$ such that $g\circ h=id_{I}$, but I failed.
Alex Youcis gave the general result. A mechanism for expressing an ideal $I$ of a Dedekind domain as a direct summand of a free module is to use the inverse in the class group. If $J$ is a fractional ideal representing the inverse, then we can (by scaling) arrange things such that $IJ=R$. This means that we can represent $1$ $$ 1=\sum_{t=1}^k i_tj_t $$ as a finite sum with some elements $i_t\in I, j_t\in J$. By the definition of the inverse, all the products $ij, i\in I, j\in J$ are elements of $R$. It is then easy to show that the elements $i_t$ (resp. $j_t$) generate $I$ (resp. $J$) as an $R$-module. Therefore we have the following covering of $I$ by a free $R$-module: $$ p:R^k\rightarrow I, (r_1,r_2,\ldots,r_k)\mapsto \sum_{t=1}^k{r_ti_t}. $$ This is split by the mapping $$ s:I\rightarrow R^k, i\mapsto (ij_1,ij_2,\ldots,ij_k). $$ As $s$ is clearly a monomorphism $s(I)\simeq I$, and we can conclude that $R^k\simeq s(I)\oplus \mathrm{ker}\, p$.
In the specific example case we can use the fact that $I$ is of order two in the class group. More precisely, $$ I^2=(4,2\sqrt{-6},-6)=(2) $$ is principal. Thus we can use $J=\frac12 I$ as the inverse fractional ideal. So $J$ is the $R$-module generated by $1$ and $\sqrt{-6}/2$. We can write $$ 1=4-3=4\cdot1+\sqrt{-6}\cdot\frac{\sqrt{-6}}2 $$ in the prescribed way, where in all the terms the former factor is from $I$ and the latter from $J$. The general recipe gives us a cover mapping $$ \begin{eqnarray*} p:&R^2&\to I\\ & (r_1,r_2)&\mapsto 4r_1+\sqrt{-6}r_2\end{eqnarray*} $$ that is split by the $R$-homomorphism $$ \begin{eqnarray*} s: &I& \to R^2\\ &i&\mapsto \left(i,i\,\frac{\sqrt{-6}}2\right).\end{eqnarray*} $$