A 20.0 g toy car moving to the right at 21.0 cm/s has a head-on collision with a 34.0 g toy car moving in the opposite direction at 47.0 cm/s. If they begin 396.0 cm apart, how long does it take the cars to collide?