In the book [1] by Smarandache (see also [2]) appears a generalization of the well-known bisector theorem, which conducts us the classical Steiner theorem.
Now use the information you already have about finding the equation of a line and apply it to the dashed lines shown in these triangles. Remember, to find the equation of a line you need a point ...