Teen sentenced to 25 years for 2012 homicide