He/she used the Department for Education’s total budget; but not the Ministry of Justices’ total budget, which isn't a win for any argument and shows a lack of awareness. You'd not be happy with cherry picking stats either, order of magnitude difference or otherwise.
There are around 8.5 million Children in the system and around 100k prisoners. Each prisoner costs way more more per head than child, per year.