(i) 8a+12b=4×2a+4×3b=4(2a+3b), a multiple of 4 for all a and b.
(ii) Write 12b=8b+4b:
8a+12b=8(a+b)+4b
8(a+b) is a multiple of 8, so the total is a multiple of 8 exactly when 4b is. 4b is a multiple of 8 when b is even (4b=8×2b) and leaves 4 over when b is odd. So a shelf repacks into boxes of 8 exactly when b is even, whatever a is. For example, a=1, b=2 gives 32=8×4, while a=1, b=1 gives 20, which leaves 4 over.
(iii) Only 28.
- 102 is not a multiple of 4 (102=4×25+2), so by (i) it cannot be a shelf total.
- 28 works: 8a+12b=28 means 4(2a+3b)=28, so 2a+3b=7, which gives a=2, b=1 (16+12=28).
- 24 is a multiple of 4, but it would need 2a+3b=6. With a,b≥1: b=1 gives 2a=3 (not a whole number), and b=2 gives 2a=0 (but a≥1). So 24 is impossible.
Being a multiple of 4 is necessary for a shelf total, but it is not enough.