Pig iron is the intermediate product of smelting iron ore with coke, usually with limestone as a flux.…