I've been using Mathsbot, and I've seen this question repeatedly come up. I know how to work out perpendicular gradients and how to substitute coordinates in to find c, but I don't understand how to use the ratio of the line segment to work out the coordinates of M.