The price is 24000/6000 = 4 times what it was.
That price increase represents an average annual inflation rate of 4^(1/40) - 1 ≈ 3.53%.
That price increase represents an average annual inflation rate of 4^(1/40) - 1 ≈ 3.53%.