uh....midpoint is exactly what it sounds like, the middle point of a line
the distance between one end of a line and the line's midpoint, is the same distance between the other end of the line and the midpoint...
so find the distance between s and M, and then add that distance to M to get R...