Points P, Q, R and S lie on a line in that order. Q is the midpoint of PR. If the length of RS is 9 and the length of PS is 17, what is the length of PQ?