We paid 22.8m for Amauri. Palermo paid us 7.5 for Nocerino, some 3m or so for half Palladino and something for half of Lanzafame (or loan, I don't remember). Basically it was ~10-12m+Nocerino+half of Palladino+half (loan) of Lanzafame.
For Melo we paid 25m while Viola paid us 4.5 for Marchionni and 2m for Zanetti. In the end it was 18.5+Marchionni+Zanetti.
It will be the same in this case if it happens. We'll pay, say, 30m for Jovetic, while Fiorentina will pay us 7m for Quag, 4 for Pazienza and 4 for Padoin and it's gonna be 15m+Quag+Pazienza+Padoin.