In the nine-term sequence P,Q,R,S,T,U,V,W,X, the value of Q is 12 and the sum of any three consecutive terms is 50. What is P+X?
36
38
40
42
44