Generous raju

Please tell me the approach to this problem.

Do check out the editorial : CHRIST02 - Editorial