A gang has been jailed for a total of 12 years for their part in exporting books to Australia with cocaine hidden inside.