Both Rishi Sunak and Liz Truss have pledged to tackle the rising cost of energy, food and essential items.