BOSTON -- Jacoby Ellsbury hit an inside-the-park homer and Conor Jackson added a grand slam to cap a much-needed offensive outburst that helped the Boston Red Sox split their doubleheader with the Baltimore Orioles Monday and stop, for now, their slide in the AL wild-card race.

The Red Sox won the late game, 18-9, after losing the opener, 6-5, for their 12th loss in 15 games, trimming their lead over Tampa Bay to 1 1/2 games in the chase for the wild card. The Rays were idle, with a four-game series against the Yankees starting Tuesday.

advertisement | advertise on newsday

Night game starter John Lackey fell behind 3-0, but the Red Sox took a 4-3 lead after one, made it 6-3 in the second and 11-5 after three innings. Then Lackey gave up another run in the fourth and two more in the fifth before Scott Atchison (1-0) came on for a one-pitch double play to end the inning.

Boston slugger Adrian Gonzalez reached base seven straight times in the doubleheader, Marco Scutaro had six hits and Dustin Pedroia drove in five runs on the day. Jed Lowrie hit a three-run homer in the nightcap that erased the early deficit and gave the Red Sox the lead for good.

Jeremy Guthrie pitched the last-place Orioles to the win in the day game.-- AP