The Orioles' Craig Gentry hits a go-ahead RBI single in the 12th inning Sunday at Yankeee Stadium. (Kathy Willens/AP)

A first road trip that pitted the Baltimore Orioles against the class of the American League was always going to raise questions about the club. It turned out the answers, however delayed, were pretty satisfying.

In Sunday’s matinee with the New York Yankees, the Orioles erased a five-run first-inning deficit, lost a late-inning lead and slipped ahead for a second signature win in this series, an 8-7, 12-inning victory in the Bronx.

After Baltimore played 14 innings and won on a grand slam by Pedro Alvarez on Friday night, Alvarez came off the bench and scored the winning run Sunday. He walked in the top of the 12th, went to second on a single by rookie Anthony Santander and scored when Craig Gentry won an 11-pitch at-bat and singled.

In the home half of the inning, closer Brad Brach walked two, committed an error trying to field a bunt to load the bases, then started a 1-2-5 double play with catcher Caleb Joseph on a chopper from Aaron Judge before striking out Giancarlo Stanton to clinch his second save of the season. The Orioles arrived in New York on a five-game skid and coming off getting swept by the Astros in Houston, but after taking three of four here, they return home for a three-game set with Toronto at 4-6.

“A great series for us,” said Orioles reliever Richard Bleier (2-0), who threw three scoreless innings on his third day of use in a row.

Sunday’s win is a credit to the offense and the team’s relief corps after Mike Wright Jr. allowed five runs while recording two outs before he was pulled in the first.

Baltimore closer Brad Brach and catcher Caleb Joseph celebrate after the Orioles prevailed for their third win in the four-game series. (Brad Penner/Usa Today Sports)

Danny Valencia and Santander each hit a two-run homer for the Orioles. Santander’s home run, which put Baltimore ahead in the seventh, was the first of his career. The right fielder finished with three hits and three RBI.

Stanton went 0 for 7, stranded nine and fanned five times for the second time in a week.

— Baltimore Sun