Which had nothing to do with wealth.
And as it is a Juvenile Court, where rehab is the concern and not punishment, a twenty year sentence would have only resulted in an actual two year sentence (when he turned 18).
They way it works out, he is under the thumb of the Government for ten years.
That is a horrible and quite oppressive sentence. Far worse than the two years if he had been given a twenty.