The key part of the twin paradox is the shift in reference frame.
For the original paradox, A stays on Earth, while B runs off to another planet and returns home.
If you can understand that, then the understanding of this modified version will come easily.
For the twin on the moving ship, their speed makes the other twin appear to age slower, as each snapshot of the twin's life takes longer and longer to reach them, in effect causing a Doppler shift.
The relative motion does the same for the observer on Earth.
Then on the return journey, the opposite happens, with them both appearing to age much faster.
The key difference is in how long each of these periods are.
Consider when B gets to the other planet.
They receive an image of A just a short time after they left.
But this image of B only reaches A shortly before B arrives home.
This means for the entire duration of the return journey (half the time for B) they are seeing A age much faster than themselves.
But for A, it is only a small portion of time that they see B age faster for.
This leaves B much younger when they reunite.
With your example, where we have another go to a different planet (which I will say is C), the same thing happens between A and C, with A being much older than C when C gets back home.
The only additional complexity is how B and C see each other.
Lets assume that it is symmetric, with both going at the same speed, in exactly opposite directions, travelling for the same distance, then turning around and coming back.
So now what happens on the outbound journey?
They both see each other ageing much more slowly, even more slowly than A.
This continues all the way until they turn around.
This turn around point is where it gets more complex.
For a portion of this (in fact most of it) they would see A ageing rapidly, while the one in the other ship ages at the same rate as them (but still remains younger).
This continues until they observe the one in the other ship turn around, at which point they start to appear to age rapidly, more rapidly than A is ageing.
This means that A will be the oldest (who stayed on the planet), while B and C are both younger than A, but the same age.
If you remove some of the symmetry then they can get different ages.