MINNEAPOLIS (AP) -- Adalberto Mejia made the most of his brief stint back in the majors with the Minnesota Twins by getting his first big-league win.

Robbie Grossman, Max Kepler and Chris Gimenez all homered to help Mejia and the Twins beat the Kansas City Royals 8-4 in the second game Sunday to salvage a split of a doubleheader.

Mejia (1-1) was the Twins' 26th active player for the second game and allowed three runs in seven innings, on two home runs by Salvador Perez - who also went deep in the first game.

Mejia's reward for his first win? A trip back to Triple-A Rochester.

Grossman and Kepler each hit two-run homers in the first inning, and Brian Dozier had an RBI double in the second off Ian Kennedy (0-4) in his first game back from the disabled list.

Brandon Moss hit two of Kansas City's four home runs in the opener of the doubleheader, and Perez and Jorge Bonifacio each hit two-run homers to lead the Royals to a 6-4 win earlier in the day.

With the split, the Twins are now 7-1 on the year against the Royals. Kansas City's win in the first game snapped a seven-game losing streak against Minnesota.