Step-by-step explanation:
Mass of ball A,

Mass of ball B,

Initial velocity of ball A,

Initial velocity of ball B,

We need to find the final velocity of each ball. For a perfectly elastic collision, the coefficient of restitution is equal to 1. It is given by :

are final velocities of ball A and B

...........(1)
Using the conservation of linear momentum as :


..............(2)
On solving equation (1) and (2) using calculator we get :


So, the final velocities of ball A and B are 4.2 m/s and 17.2 m/s. Hence, this is the required solution.