Cocaine plea brings 12-year prison term