Please provide a detailed solution for this

Please provide a detailed solution for this question as I am not able to understand the answer provided.

please read the explanation