Teenager to spend time in custody on 31 charges