This question already has an answer here:
I have heard of the thought experiment where someone fly off in spaceships and come back younger than their twin on earth. But a fundamental idea behind general relativity was that motion can only be described as relative to others. Therefore, the twins would have the same relative acceleration to each other. If we think about them as floating in space, there should be no way to tell who is doing the accelerating. So how does physics determine which one ends up younger?