Explaination of Q9?

please explain Q9 of the dp quiz.According to which subsequence,sum is 24 in this case?