In $\triangle ABC$, $AB = 10, AC = 12$ and $BC = 18$. A circle is drawn such that its center is on side $ BC$ and it touches lines $AC$ and $AB$. Find the radius of the circle.
By pythagoras theorem ,
$r^2 + (10-x)^2=(18-y)^2$
$(12-x)^2+r^2=y^2$
So there are three variable and 2 equations.
Also I think my algebraic approach is quite cumbersome.
So can anyone find an elegant solution?
Any help is apreciated.

$(ABC)=(ADB)+(ADC)=5r+6r=11r$. So, by Heron's formula, $$11r=\sqrt{20\cdot10\cdot8\cdot2}=40\sqrt2$$So, $r=\frac{40}{11}\sqrt2$.