Perry Hills passed for 200 yards and two touchdowns in the Terrapins’ 28-17 victory over the Spartans.