I'm guessing that Acid P and base X is A because the acid is strong (Low pH) and the base is strong (High pH) so the pHs of the acid and base must be the range stated in the question meaning both indicators give a precise end point (of the titration).
Then Acid Q (weak, neutral pH) and base X (strong, high pH) is C because the phenolphthalein gives an endpoint of the titration because the base is in the pH range stated in the question but the weak Acid is not within the pH range of methyl orange so it does not give a precise endpoint.
Then Acid Q (weak, neutral pH) and base Y (weak, neutral pH) is D because the more neutral pHs of these substances means they are out of the ranges of the testers stated in the question so will not give a precise end point.
(Sorry if any of this is wrong I'm only at GCSE level but got an A* in my chemistry GCSE last year - doing triple)