Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>For trapezoid QRST, M and P are midpoints of the legs. If TS = 2x + 2, QR = 5x + 3, and PM = 13, find TS.