A two-out double just inside the right field line by Wil Myers in the eighth inning was the break the Tampa Bay Rays needed Thursday night to salvage the final game of their three-game series with the AL East-leading Red Sox.

Evan Longoria scored on the hit and the Rays won 4-3 in front of 20360 at Tropicana Field.

Fernando Rodney got Dustin Pedroia to pop out to end the game with runners on first and second for his 34th save of the season.

It was the Rays' fifth win in their past 18 games and it enabled them to hold on to their one-game lead over the Yankees for the second wild-card spot.

Longoria doubled with one out to start the much-needed winning rally.

Jake McGee who worked a perfect eighth inning got the victory.

It was the second time in the game that Longoria and Myers teamed up for a run.

The Rays took their first lead of the series in the second inning when Longoria tripled to right field and scored on a single through the middle by Myers.

They made it 2-0 in the third when David DeJesus walked and scored on a double off the top of the right-field wall by James Loney. Loney hit third for the first time this season because of his career .321 average against Red Sox starter Jake Peavy.

The Red Sox got a run back in the top of the fourth when Jarrod Saltalamaccia homerd to left field. That snapped an 0-for-21 slump for the Red Sox catcher.

It also ended a run in which Jeremy Hellickson retired six straight hitters.

Hellickson pitched himself into and out of trouble in the first inning when he allowed a one-out single to Daniel Nava and walked David Ortiz. Mike Napoli broke his bat while hitting a grounder to shortstop. That actually helped the Sox. The ball was hit too slow for Yunel Escobar to turn a double play and Escobar had to settle for the out at first base. That put runners on second and third for the Sox.