Jason Good, 17, was arrested in Lowestoft with 20-year-old Daniel Bultitude in January after police officers walked past them while they were sitting on a bench and noticed the smell of cannabis, Ipswich Crown Court heard.

Good was found to have nine wraps of heroin with a maximum street value of £180 and six wraps of crack cocaine which had a maximum street value of £120.

Bultitude’s DNA was found on one of the heroin wraps and when police searched his accommodation they found 48 wraps of crack cocaine with a street value of £960, said Michael Crimp, prosecuting.

Good, of Quilter Road, Felixstowe, admitted being concerned in the supply of cocaine and heroin and was sentenced to an 18-month detention and training order.

Bultitude, of Kirkley Cliff Road, Lowestoft admitted being concerned in the supply of heroin and possessing cocaine with intent to supply and was sentenced to two years detention in a young offenders’ institution.

Michael Clare, for Bultitude, said his client had smoked cannabis and had got into debt in his late teens. “He was trying to pay off the debt by doing what he was told by other people,” said Mr Clare.

Ali Dewji, for Good, said he got involved in drug dealing after getting into debt after being given drugs by an older man.