A former leader at a New Hampshire youth detention center who was convicted of holding down a teen while he was raped in 1998 has been sentenced to 20 to 40 years in prison.