BOSTON (AP) - Will Blackmon caught three passes for 151 yards, and Mathias Kiwanuka had a hand in five of Boston College's eight sacks on Saturday night as the Eagles recovered from a 10-point deficit to beat North Carolina State 30-10.

Matt Ryan scored twice and threw for one touchdown in his first game since taking over the starting job from Quinton Porter. The former backup completed 8-of-16 passes for 185 yards, connecting with Blackmon on three long passes to set up three scores after Boston College (7-3, 4-3 Atlantic Coast Conference) fell behind 10-0.

Kiwanuka, the ACC's preseason defensive player of the year, had 12 tackles, including two sacks and three half-sacks. L.V. Whitworth ran 26 times for 119 yards and a touchdown for BC, which had lost consecutive games since qualifying for a bowl to fall out of contention for the conference title game.

Marcus Stone completed 13-for-29 for 247 yards with one touchdown and one interception, losing for the first time in three games since he was promoted to starter. Andre Brown, who ran for 179 yards and a touchdown when N.C. State (4-5, 2-5) beat then-No. 9 Florida State last week, had just 12 yards on 13 carries against BC.

Except for a 96-yard reception by Brian Clark that was the second-longest play in school history, the Wolfpack didn't muster much offense at all until BC went into its prevent defense at the end of the game.

The Wolfpack wound up deep in their own territory after allowing a punt to roll to the 4 yard-line. But they turned things around on the next play.

Stone went back to pass, into the end zone, then rolled to his left to buy more time. With his front foot on the goal line, he chucked the ball halfway down the field.

BC cornerback DeJuan Tribble, who's 5-foot-9, stopped in front of the receiver and jumped, but the ball went over his head and the 6-foot-2 Clark brought it down at the 50 and ran to the end zone.

N.C. State took a 10-0 lead with 6:48 left in the first quarter on John Deraney's 48-yard field goal. Then their production stopped just as quickly as it started.

One play after a botched pitch almost turned the ball over, Ryan hit Blackmon for 38 yards on a third-and-21. That put the ball at the Wolfpack 14 and set up Whitworth's 1-yard run that made it 10-7 at the end of the first quarter.

Neither team did much in the second until Ryan hit Blackmon for a 52-yard pass, missing out on the touchdown when A.J. Davis grabbed the receiver and pulled him down at the 5. The officials signaled a score and BC even kicked the extra point, but the kick was waved off just before the snap and the ball was placed at the 3 yard-line.

Three tries couldn't punch it in, so the Eagles settled for a field goal that tied it 10-all.

The Eagles stopped N.C. State before giving them another chance with a roughing the punter penalty. But on the second play after the personal foul, Stone threw it into linebacker Ray Henderson's arms and he ran it 31 yards to the Wolfpack 17.

Two plays later, Ryan hit Chris Miller for a 17-yard TD to give the Eagles a 17-10 lead.

BC made it 24-10 when Ryan and Blackmon connected for a 61-yard completion, this time a short pass that Blackmon extended when he broke a few tackles near the line of scrimmage and ran to the 4 before David brought him down. Two plays later, Ryan scrambled in, faking out two would-be tacklers before diving across the goal line.

Whitworth broke free for a 47-yard run late in the fourth quarter to set up BC's last touchdown, a 1-yard dive by Ryan with 1:20 left.