Compute intersection of lines

image

This probably isn’t the right forum to be asking this question. It looks like a similar triangles question, but I don’t see the solution right off. It is not too hard to show that the two triangles below MI are similar to triangles AIM and ALM, but I don’t immediately see how to find the scale factors which would allow solving for all the lengths.