Two key things in this problem, frictionless surface & perfectly elastic collision.
Because the collision is perfectly elastic one can assume the velocity remains constant. The original pre-collision velocity should equal the total post-collision velocities of the pucks.
So the original blue puch velocity of 0.200m/s would equal the post-collision velocity of the blue puck (4.00x10-2m/s) + the post-collision velocity of the red puck. Subtract to to find the velocity of the red puck.
To find the mass, use 'conservation of momentum'. The momentum pre-collision remains the same, post-collision.
Momentum equals mass * velocity.
Momentum pre-collision = TOTAL momentum post-collision...
pre-collision blue puck momentum = post-collision blue puck momentum + post-collision red puck momentum.
Momentum pre-collision is the mass of the blue puck (3.50x10-2kg) * the velocity of the blue puck (0.200m/s).
Post collision there are two pieces of momentum. The post-collision blue puck has a new momentum of its mass (3.50x10-2) * its NEW velocity (4.00x10-2m/s).
The post-collision red puck has a moment of its mass (unknown) * its NEW velocity (figured out in the first part).
So now you have all the pieces defined except the red pucks mass.
pre-collision=post-collision
mv(blue) = mv (blue) + mv (red)
(3.50x10-2)(0.220)=(3.50x10-2)(4.00x10-2) + m(red)*velocity(red, from part a).
A little algebra and your all done.