I actually just performed a similar exercise using fangraphs projections to get a rough idea of what needs to be done to get to 90 wins. I got up to 92.6 Wins using Realmuto, Pollock, Machado and Happ. Total salary of $195-200m
My opening day starting 9 would be:
Nola
Realmuto,
Hoskins,
Hernandez,
Segura,
Machado,
McCutchen,
Herrera,
Pollock
With Happ, Arrieta, Pivetta and either Velasquez or Eflin as the rest of the rotation.
You are only getting two years of Realmuto but trading for him means hes not going to the Mets, and the Yankees haven't freed up a spot for Machado so it has additional benefit.