If Sis the midpoint of, RT RS= 5x+ 17, and ST= 8x–31, find RS.