I'm having trouble figuring this out!
i've done some math but its not right at all and i'm stuck

Point M is the midpoint of segment QR. If QM = 2x + 5 and MR = 5x – 1, find the length of QR.