Inflation and cost of living reflect different economic aspects but they are inextricably linked. Here's how they interact.