The track shown in the figure is frictionless. The block B of mass 4kg is lying at rest and block A of mass 2kg is pushed along the track with some speed. The collision between A and B is perfectly elastic. With what velocity should the block A start such that block B just reaches at point P ?