Consumer Price index(CPI) is the average price of product and services purchase by the consumers. Where The GDP price index…