1) In a perfectly inelastic collision, the two balls stick together after the collision. In this type of collision, the total kinetic energy of the system is not conserved, while the total momentum is conserved.
If we call
![v_f](https://img.qammunity.org/2019/formulas/physics/college/k8ic3pyrdah8i943pvmeh33uca09720m3o.png)
the final velocity of the two balls that stick together, the conservation of the total momentum before and after the collision can be written as
![m_a v_(Ai) + m_b v_(Bi) = (m_A+m_B)v_f](https://img.qammunity.org/2019/formulas/physics/middle-school/8qizhrmhxbqatgctq0ky60gjflbxybhjgu.png)
(1)
where
![m_A=7 kg](https://img.qammunity.org/2019/formulas/physics/middle-school/n89tiuo06j89p1ra5o3czumwsdai7wd6tt.png)
is the mass of ball A
![m_B=2 kg](https://img.qammunity.org/2019/formulas/physics/middle-school/yvdg9q4jyvn3gku7je7okk2ebjc9zb6snv.png)
is the mass of ball B
![v_(Ai)=6 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/lz1u9yy7d8tmaju40odeuf3sphv93rcpsi.png)
is the initial velocity of ball A
![v_(Bi)=-12 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/8j2islljc9bhf5lv1wv104jfx4e2edji8h.png)
is the initial velocity of ball B (taken with a negative sign, since it goes in the opposite direction of ball A)
If we solve (1) to find
![v_f](https://img.qammunity.org/2019/formulas/physics/college/k8ic3pyrdah8i943pvmeh33uca09720m3o.png)
, we find that the final velocity of the balls is
![v_f= (m_Av_(Ai)+m_Bv_(Bi))/(m_A+m_B)= ((7\cdot 6)+(2 \cdot (- 12)))/(7+2)= (18)/(9)=2 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/xpir4o88azrzv48t64p0soyvrymv9rkjzq.png)
and the positive sign means the two balls are going to the right.
2) I assume here we are talking about an elastic collision. In this case, both total momentum and total kinetic energy are conserved:
![m_A v_(Ai)+m_B v_(Bi) = m_A v_(fA) + m_B v_(fB)](https://img.qammunity.org/2019/formulas/physics/middle-school/jcjggljalvvozws5i8r5f8qwl5kabwaiwj.png)
![(1)/(2)m_A v_(Ai)^2+ (1)/(2)m_B v_(Bi)^2= (1)/(2)m_Av_(fA)^2+ (1)/(2)m_B v_(fB)^2](https://img.qammunity.org/2019/formulas/physics/middle-school/mn2vxvs2gur7pwp3bvoeckdo9gi91y7w5e.png)
where
![v_(fA)](https://img.qammunity.org/2019/formulas/physics/middle-school/hwzg3ecydz3xj3oh6yw21z9tl5xkmv73l0.png)
is the final velocity of ball A
![v_(fB)](https://img.qammunity.org/2019/formulas/physics/middle-school/cu9cd6fou6oejolzycjtkmvblb1vick7yu.png)
is the final velocity of ball B
If we solve simultaneously the two equations, we find:
![v_(fA)= (v_(Ai)(m_A-m_B)+2m_Bv_(Bi))/(m_A+m_B) = ((6)(7-2)+2(2)(-12))/(7+2)=-2 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/5o7dcum4j5zj500i8g7yen8pp475vhu0qi.png)
![v_(fB)= (v_(Bi)(m_B-m_A)+2m_Av_(Ai))/(m_A+m_B) = ((-12)(2-7)+2(7)(6))/(7+2)= (144)/(9)=16 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/g0d6qqz7nc39qo8fyk47qroprncnbx4fua.png)
So, after the collision, ball A moves to the left with velocity v=-2 m/s and ball B moves to the right with velocity v=16 m/s.
3) The total momentum before and after the collision is conserved.
In fact, the total momentum before the collision is:
![p_i = m_A v_(A) + m_B v_(fB) = (7\cdot 6)+(2 \cdot (-12))=42-24=18 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/lf8ljdko9wivusq3r1rzgp0b5swpbcvn1o.png)
and the total momentum after the collision is:
![p_f = m_A v_(A) + m_B v_(fB) = (7\cdot (-2))+(2 \cdot 16)=-14+32=18 m/s](https://img.qammunity.org/2019/formulas/physics/middle-school/sq9g9eo1y9kvatygng638vop9gkl2b0ywp.png)