A circle of radius $r$ is inscribed into a triangle $ABC$. Tangent lines to this circle parallel to the sides of the triangle cut out three smaller triangles, $\triangle A_cB_cC$, $\triangle A_bBC_b$, $\triangle AB_aC_a$. The radii of the circles inscribed in these smaller triangles are equal to $1$, $2$ and $3$, respectively. Find $r$.
I have no idea how to start...


Consider triangle ABC, A as top vertex, B the right on and C the left. let;s denote the heights as $h_a$ , $h_b$ and $h_c$, and the radii of circles $r_a=1$, $r_b=2$ and $r_c=3$ and unknown radius as $r$ . The triangles created by tangents to circles and parallel to bases are similar to main triangle, let't denote the heights of these triangles as $h'_a$. $h'_b$ and $h'_c$; we may write:
$\frac{r_a}{r}=\frac{h'_a}{h_a}$
$h_a=2r+h'_a$ .
Therefore:
$h_a=2r+\frac{r_ah_a}{r}$
Which gives:
$2r^2-rh_a +h_a=0 $
Similarly we get:
$2r^2-rh_b +2h_b=0 $
$2r^2-rh_c +3h_c=0 $
Now we this statement: If three perpendiculars from a point inside a triangle are droped on the sides (here the radii of circle r) we have:
$\frac{r}{h_a} +\frac{r}{h_b}+\frac{r}{h_c}=1$
Now we have a system of four equations for four unknown $h_a,. h_b,.h_c $ and $r$. Solving this system will give you r. Wolfram alpha gives $r=6, h_a=14.5, h_b=18, h_c=24$. If we use generalized Descartes theorem and assume the sides of triangle circles with radius infinity, where $k_s=\frac{1}{∞}=0$ will be the curvature of sides we have:
$(\frac{1}{1}+\frac{1}{2}+\frac{1}{3}+0+\frac{1}{r})^2=2(\frac{1}{1^2}+\frac{1}{2^2}+\frac{1}{3^2}+0+\frac{1}{r^2})$
It finally results in:
$23 r^2+132r-36=0$
Which gives $r=6$