Homicide defendant sentenced to 36 years for robberies