Point K lies inside triangle ABC with AB=8, BC=6 and AC=12. Each of three segments through point K has length x, is parallel to a side of the triangle and has endpoints on the triangle. Find x.

I tried using similar triangles without success. Any hints?