Let $R$ be a commutative ring and $I$ and $J$ two ideals. Consider the index category $\mathcal{I}$ with three objects $\{a,b,c\}$ with morphisms $Hom(a,a)=\{id_a\}$, $Hom(b,b)=\{id_b\}$, $Hom(c,c)=\{id_c\}$, $Hom(a,b)$ and $Hom(a,c)$ being of size $1$ as well with morphisms denoted by $f$ and $g$, $Hom(b,c)=\{\varnothing\}$. Show that the colimit of the functor $\mathcal{I} \to Rings$:
-sending $a$ to $R$, $b$ to $R/I$, $c$ to $R/J$ and
-sending the morphisms $f$ and $g$ to the quotient maps
is the ring $R/(I+J)$.
I'm stuck to construct a homomorphism $h: R/(I+J)$ to a any ring $M$ satisfying, for example, $$\begin{array}{cc} R & \xrightarrow{k} & M\\ \downarrow &\nearrow{l} \\R/J \end{array}$$ such that the following diagram commutes $$\begin{array}{cc} R & \xrightarrow{} R/(I+J) \xrightarrow{h} & M\\ \downarrow & \nearrow &\nearrow{l} \\R/J \end{array}$$ My attempt is that for every $\overline{r} \in R/(I+J)$, choose the representative $r \in R$ of $\overline{r}$ and $h(\overline{r})=k(r)$ but it is not well-defined.
P/s: I'm not familiar with drawing diagram here, sorry for any inconvenience.