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, PM = 20, and QR = 6x, find x.