pH represents the strength of an acid or a base in terms of hydrogen ion concentration.
A solution is a base if pH > 7 and an acid if pH < 7.
Thus, solution X is an acid while Y is a base.
Phenolphthalein will turn pink when Y is added to it, as Y is a base.