TAMPA, Fla. (AP) Mark Teixeira hit a solo homer in the seventh inning and Dustin Ackley had a two-run double in the eighth to help the New York Yankees beat the Detroit Tigers 3-2 on Monday night.

Ian Kinsler and Justin Upton hit consecutive solo homers in the sixth for the Tigers. Detroit has gone deep 41 times this spring, the most for the Tigers in spring training since hitting 46 in 2012.

Buck Farmer allowed two hits, one walk and struck out one in three shutout innings for Detroit. He's a longshot for the Tigers rotation but in the mix to be a reliever.

More from FoxSports

Yankees prospect and bullpen candidate Luis Cessa gave up one hit, one walk and struck out four in three scoreless innings. The 23-year-old right-hander worked out of a two-on, one-out jam in the third by retiring Kinsler on a fly ball and striking out Upton.

Cessa was part of a December trade with Detroit that sent reliever Justin Wilson to the Tigers.