The triangular numbers up to and immediately beyond 24 are
1 = 1
1+2 = 3
1+2+3 = 6
1+2+3+4 = 10
1+2+3+4+5 = 15
1+2+3+4+5+6 = 21
1+2+3+4+5+6+7 = 28
So, of these, only 3 + 21 can be added together to make 24
34
34
-22
17 and 7
26
14
20
34
11 and 13
-101
34
-22
17 and 7
1
-29
13
26