There may be less onerous ways to answer this question, but I would suggest that you use the distance formula to find the length of MD and the length of MT and then do the division of the length of MT by the length of MD.
Remember if two points are (a,b) and (c,d), the distance between them is
sqrt[(a-c)2 + (b-d)2].