(i)
8=2×2×2
12=2×2×3
18=2×3×3
(ii) The stock must include each of these factorisations. So it needs three 2s (for 8) and two 3s (for 18); these also cover 12, which needs two 2s and one 3. The smallest such number uses nothing more:
2×2×2×3×3=72
The smallest stock is 72 mangoes (9 crates of 8, 6 crates of 12, or 4 crates of 18).
(iii) Crates of 24: 24=2×2×2×3 needs three 2s and one 3. 72 has three 2s and two 3s, so yes: 3 crates of 24.
Crates of 27: 27=3×3×3 needs three 3s, but 72 has only two. So no: 72=27×2+18.