We want 12k = m^3 for integers m and k

=> k = (m^3)/12

so we want the smallest m for which (m^3)/12 gives an integer. The smallest m for which this happens is 0, but that would mean k = 0, we want k positive. The next smallest m for which this happens is 6. So k = (6^3)/12 = 18