P and Q are isomers of dicarboxylic acid C4H4O4. Both decolorize Br2/H2O. On heating, P forms the cyclic anhydride. Upon treatment with dilute alkaline KMnO4, P as well as Q could produce one or more than one from S, T and U.
In the following reaction sequences V and W are, respectively