Man sentenced to 40 years in prison for luring victim, robbi