He was relegated from 1st to the back of the grid (20th) after first qualifying, then having worked his way up to 5th in the sprint qualifying, was still subject to the 5 place penalty imposed for new engine parts.
(Their maths is one out though - 1st to 20th is only 19 places...)
Yes - that was exactly my point. It was 24 places, not 25 surely.