Roman Hemby rushed for 179 yards and three touchdowns, including a go-ahead 75-yard score with 3:22 left, to lead the Terps to a 31-24 win over Northwestern that secured bowl eligibility for the second straight season.