
Discussion and hints:

It is recommended that you work with the system make up of A and B together. With such a system, you can avoid dealing with the internal contact force when using the linear impulse-momentum equation.
Step 1: FBDs
Draw an FBD of A+B.
Step 2: Kinetics (linear impulse/momentum)
Look for forces acting in the direction of travel for your FBD. Is linear momentum conserved in that direction? Also, note that you are asked to find the velocity of both A and B (two unknowns); however, the linear impulse-momentum equation is only a single equation. Where do you go for the second equation? Think about the coefficient of restitution equation as your second equation.
Step 3: Kinematics
Step 4: Solve
Any questions?