Given a triangle $ABC$. It is known that $AB=4$, $AC=2$, and $BC=3$. The bisector of angle $BAC$ intersects side $BC$ at point $K$. A line passing through point $B$ parallel to $AC$ intersects the extension of the bisector $AK$ at point $M$. Find $KM$.

#