Smelting of copper and lead ores formula