BLACKSBURG, Va. (AP) — Lonnie Jackson hit a 3-pointer with 27.4 seconds left to give Boston College the lead and the Eagles pulled away for a 62-59 win over Virginia Tech on Saturday.

BC (5-11, 1-2 ACC) snapped a four-game losing streak. The Eagles had lost seven of their previous eight games.

Virginia Tech (8-7, 1-2) had taken a 59-58 lead on a 3-pointer by C.J. Barksdale with 1:36 remaining. BC's Olivier Hanlan turned the ball over on the Eagles' next possession, but the Hokies couldn't take advantage, as Jarell Eddie missed a 3-pointer with 47 seconds remaining.

BC called a timeout with 33 seconds to go. After the timeout, Jackson got a good look from the left wing and hit the 3-pointer to give the Eagles a 61-59 edge.

Virginia Tech got the ball up the court quickly and called a timeout with 22.8 seconds left. The Hokies ran the clock down before getting the ball into the hands of guard Adam Smith, who took a jumper from the baseline that came up short with 2 seconds to go.

BC's Joe Rahon got the rebound and Smith fouled Rahon with a second remaining. Rahon made the first free throw, but missed the second one. Eddie got the rebound for the Hokies and time expired.

Jackson — who missed BC's first three games this season with a hamstring injury and had scored in double figures just once this season — led BC with 17 points, hitting 6 of 11 from the floor, including five 3-pointers. Olivier Hanlan added 14.

Smith led the Hokies with 12 points, and Barksdale added 11. Eddie, Virginia Tech's leading scorer at 16.6 points per game, scored 10 for the Hokies, but made just 3 of 14 from the floor.

Virginia Tech shot just 28.6 percent in the second half (8 of 28) and 35.1 percent for the game (20 of 57).

The Eagles beat the Hokies for the sixth time in the past seven meetings between the two teams.