Tenåring ble dømt til fengsel etter å ha hatt hundrevis av tabletter i en bag