A violent teenager who brutally bashed a man and later killed his friend in a horrific crash has been sentenced to eight-and-a-half years in jail.