According to law of conservation of momentum we have,
[tex]m_1v_{1i}+m_2v_{2i}=m_1v_{1f}+m_2v_{2f}_{}_{}[/tex]Where,
[tex]m_1=8kg,m_2=16\operatorname{kg},v_{1i}=9\text{ m/s, }v_{2i}=0m/s,v_{1f}=3\text{ m/s}[/tex]Substituting these values in the above equation,
[tex]8\times9+16\times0=8\times3+16\times v_{2f}[/tex][tex]v_{2f}[/tex]V2f is what we need to find out
Simplifying the above equation,
[tex]72=24+16\times v_{2f}[/tex]which implies
[tex]v_{2f}=\frac{72-24}{16}=\frac{48}{16}[/tex]Which gives us
[tex]v_{2f}=3[/tex]i.e. The velocity of the ball after the collision is 3 m/s