 They know that the distant star system and the Earth are moving relative to the ship at speed "v" during the trip.In their rest frame the distance between the Earth and the star system is years (length contraction), for both the outward and return journeys.Each half of the journey takes , and the round trip takes twice as long (6 years).