Nothing is ever 'solved' here.
Which ever one that is in control of most of the money at the time.
They eventually die, and another steps up.
Which ever pope is sitting in the 'chair' at the time.
They are puppets to the master.
Just like many other leaders.