Q.
Here (X) is:

NTA AbhyasNTA Abhyas 2020 Report Error

Solution:

Acetic acid in the presence of bromine and red phosphorus undergo Hell-Volhard-zelinsky reaction. It is an alpha substituting of halogen reaction. The halo product undergo substitution reaction with KCN which undergo hydrolysis gives malonic acid.