
Manage to have it both ways
Get out of an impasse (successfully) / Have one's cake and eat it too

Salvare capra e cavoli 

Salvare capra e cavoli
Get out of an impasse (successfully) / Have one's cake and eat it too

Salvare capra e cavoli 

Salvare capra e cavoli
Meanings
Fig.: to save two opposite interests or to manage to balance different needs
Examples
Did you know that, in the end, I managed to have it both ways? I kept the money I owed him and we are still best friends
Sai che poi sono riuscito a salvare capra e cavoli? Non gli ho più
restituito il denaro che gli dovevo e siamo più amici di prima
Unfortunately, the situation is such that you cannot get out of this impasse: it's either you lay off 50% of the personnel or you'll go bankrupt
Purtroppo la situazione è tale che non puoi più salvare capra e cavoli: o licenzi metà del personale o farai bancarotta