Answer:
Momentum of 2nd ball is

direction is given as

Step-by-step explanation:
As we know that there is no external force on the system of balls so momentum before and after collision will be conserved
So we have

now after collision momentum of two balls is must be same as initial
so we have


so we have


for other component we have


Momentum of 2nd ball is given as


direction is given as


