...where $a$ is at least 2 and at most 4, $b$ is at least 3 and at most 6, and $c$ is at least 4 and at most 8.
In this solution, I cannot understand this part:
The required number $r$ is the number of solutions in integers of the revised equation $x + y + z = 16$, where the upper bounds for x, y, and z are 2, 3, and 4.
I tried adding the numbers, like $2+3+4$, but I don't know how the book got from
$$a + b + c = 25; 2\leq a\leq4, 3\leq b\leq6, 4\leq c\leq8$$ to $$x + y + z = 16; x\leq 2, y\leq3, z\leq4$$
I can see that the upper bounds for $x, y,$ and $z$ are the lower bounds for $a, b,$ and $c$, but how did the book change the 25 into a 16?
Make the substitutions $x=a-2, y=b-3, z=c-4$ then $$ x+y+z=(a-2)+(b-3)+(c-4) = a+b+c-(2+3+4)=25-9=16 $$