A man who sold fentanyl disguised as Percocet pills to two teenagers, leading to their deaths, has been sentenced to prison.