Man gets 24 years for fatal shooting of Danville teen