Friends sentenced to 8 years in drug case