Answer:
Part a)


Part b)
Since on the block wedge system there is no external force in horizontal direction so the Center of mass will not move in horizontal direction but in vertical direction it will move
so displacement in Y direction is given as

Step-by-step explanation:
PART A)
As we know that there is no external force on the system of two masses in horizontal direction
So here the two masses will have its momentum conserved in horizontal direction
So we have

Also we know that here no friction force on the system so total energy will always remains conserved
So we have

now we have


so we have

and another block has speed

Part b)
Since on the block wedge system there is no external force in horizontal direction so the Center of mass will not move in horizontal direction but in vertical direction it will move
so displacement in Y direction is given as
