If M is the midpoint of OR, and OM = 3x + 8 and MR = 8x – 17, solve for x and find the length of OR.

(I need a step by step answer so in the future I know how to solve geometry equations like this)