MILWAUKEE (AP) -

Lucas Duda hit a two-run homer, rookie Jacob deGrom pitched well into the seventh, and the New York Mets split a four-game series with the Milwaukee Brewers with a 2-0 win Sunday.

Duda sent an 0-2 slider in the sixth from rookie Jimmy Nelson (1-2) into the second deck above right field to break a scoreless pitcher's duel. It was Duda's third homer in four days in Milwaukee.

The Brewers mounted a ninth-inning rally against Jenrry Mejia with two outs after Jean Segura's single put runners on first and second. Mejia got Lyle Overbay to ground out for his 15th save.

 DeGrom (5-5) held the Brewers to four hits and two walks, exiting with one out in the seventh after allowing two singles. Vic Black got out of that jam.