18-year-old sentenced in robbery