Answer:The mass of ball B is 10 kg.
Explanation;
Mass of ball A = [tex]M_A=5 kg[/tex]
Velocity of the ball A before collision:[tex]U_A=20 m/s[/tex]
Velocity of ball A after collision=[tex]V_A=10 m/s[/tex]
Mass of ball B= [tex]M_B[/tex]
Velocity of the ball B before collision:[tex]U_B=10 m/s[/tex]
Velocity of ball B after collision=[tex]V_B=15 m/s[/tex]
[tex]M_AV_A+M_BV_B=M_AU_A+M_BU_B[/tex]
[tex]5 kg\times 10 m/s+M_B\times 15=5 kg\times 20m/s+M_B\times 10m/s[/tex]
[tex]M_B=10kg[/tex]
The mass of ball B is 10 kg.