Two balls A and B having equal masses and moving along the same straight line with velocities +2 m/s and −5 m/s respectively, collide elastically. If rightwards direction is considered as +ve x− axis, then their velocities after the collision will be respectively