Use conservation of momentum.
Have you done the theory for this?
Total momentum of the 2 objects before the collision = total momentum after.
Momentum is mv and you must always take in to consideration the direction of travel.
If you say mv is positive from left to right, for example, then it is negative if the object is moving right to left.