A body X moves with an initial velocity of 10 m/s and acceleration 2 m/s^2. Simultaneously, another body starting from rest and moves with acceleration 3 m/s^2. X and Y will have the same velocity after an interval of time :