Two aliphatic aldehydes P and Q react in the presence of aqueous K2CO3 to give compound R, which upon treatment with HCN provides compound S. On acidification and heating, S gives the product shown below:

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
The compound S is

The compounds P and Q respectively are

The compound R is
