The cost of making the cubes is proportional to their surface area and volume, which means we can express the cost as a linear combination of the surface area and volume with constant coefficients. By solving the system of equations derived from the known costs of smaller cubes, we can find these coefficients and use them to calculate the cost of a larger cube.