Alvin, Calvin and Melvin each have some positive integer number of sweets. Alvin has fewer sweets than Calvin, and they have 29 sweets in total. Melvin has 26 sweets more than Alvin.

What is the maximum number of sweets that they can all have in total?

a < c

a+c = 29
m = a+26

we want maximum value for alvin, because that will also give the max to melvin.

Since a<c, alvin has to have less than half of their shared 29. So, a <= 14

a=14
c=15
m=40
max total: 69