What does "getting twos" mean?

In a juvenile correctional facility, a girl talks to an officer.

G: I mean, I ve been good about staying out of trouble and doing detail and stuff
and getting twos...

I don t know what "getting twos" means.
Is it some kind of prison slang?

Thanks in advance!
1 answer 1