Maximum sum of smallest and second smallest in an array

how the initution given in solution comes?
Any proof will be appreciated.
Thanks.