Drew Smyly pitched shutout ball into the seventh inning, and John Jaso’s two-run double keyed a three-run eighth to carry Tampa Bay to a 6-2 win over the Boston Red Sox on Wednesday, keeping the Rays out of last place.

Steven Souza Jr. had four hits, Asdrubal Cabrera had three hits and both hit solo homers. The Rays won for the fourth time in 11 games. Tampa Bay lost the opener of the four-game series Monday, falling into the AL East’s basement this late in the season for the first time since 2007.

Smyly (4-2) gave up five hits, struck out seven and walked three in 6 1-3 innings.

Mookie Betts had two singles for Boston, which had won 11 of 17. The Red Sox scored both runs with two outs in the ninth.

Rick Porcello (8-14) allowed three runs — two earned — on 11 hits, striking out eight and walking one in seven-plus innings.

(Copyright (c) 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox