The Yankees and Pirates agreed Friday to a trade that will end the topsy-turvy A.J. Burnett era in the Bronx, and the Bombers are now turning their attention to using some of the money saved in that deal to add Raul Ibañez and Eric Chavez to their lineup.

The trade, which won't be finalized until the commissioner's office signs off on the money to change hands and Burnett passes a physical, will save the Yankees between $6 million-$7 million on their 2012 payroll, according to sources, and net two marginal prospects. The Yanks hope to sign Ibañez and Chavez, both free agents, to incentive-filled deals worth around $1 million apiece.

There has been some sentiment in the organization to sign Johnny Damon as the DH, but Ibañez is the more likely choice, sources said.

According to sources, the Pirates will pay about $14 million of the money left on Burnett's contract. The Yankees have been paying Burnett throughout the year, rather than just during the six months of the baseball season, so they've already paid him $2.625 million in 2012, meaning there is $30.375 million remaining on Burnett's deal.

Burnett signed the five-year, $82.5 million deal after a 2008 season in which he was terrific for the Blue Jays, including multiple dominant outings against the Yankees. He was so good that some Yankees lobbied GM Brian Cashman to sign him and Burnett paid off in '09, going 13-9 with a 4.04 ERA in the regular season and 1-1 in the World Series victory over Philadelphia.