(i) The cube side must fit each edge exactly, so it must be a factor of 16, of 24 and of 40.
Factors of 16: 1, 2, 4, 8, 16.
Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24.
Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40.
The common factors are 1, 2, 4 and 8, so the cube side can be 1 cm, 2 cm, 4 cm or 8 cm.
(ii) The largest is the HCF. Check with prime factorisations:
16=2×2×2×2,24=2×2×2×3,40=2×2×2×5
The common subpart is 2×2×2=8, so the largest cube has side 8 cm.
(iii) Along the edges: 16÷8=2, 24÷8=3 and 40÷8=5 cubes.
2×3×5=30
He needs 30 cubes.