Court hears teen sold drugs to boost income