Two identical balls A and B having velocities of 0.5 m/s and -0.3 m/s respectively collide elastically in one dimension. The velocities of B and A after the collision respectively will be