A few drops of phenolphthalein indicator were added to an unknown solution P

A few drops of phenolphthalein indicator were added to an unknown solution P.
It acquired pink colour. Now another unknown solution Q was added to it dropwise and the solution ultimately became colourless. Predict the nature of the solutions P and Q.

The solution P is basic in nature as phenolphthalein has imparted pink colour to it.
The solution Q is an acid which has ultimately made solution P colourless by neutralising its basic effect.