This depends on what instruments they invested respectively and the returns they have given.
A and B would have different risk profiles and their investment objectives would be different. Why would A and B wish to cash out after two years?
Investing is not a one size fits all exercise.