Let us study the problem from the point of view of A who is in space voyage. We know that if there is a relative motion between two observers, each one thinks that the other observer is moving. Here, A would see that his twin brother B and earth moves away from him with a velocity during his outward journey. So,