Answer:
The initial velocity of 4 kg mass in positive 'x' direction is 26 m/s.
Step-by-step explanation:
Consider the positive direction to have positive value and negative direction to have negative value.
Let the initial velocity of 4 kg mass be 'u' m/s in the positive 'x' direction.
Given:
Mass of body moving in positive direction is,

Mass of body moving in negative direction is,

Initial velocity of 8 kg mass is,

Combined velocity of the masses after collision is,

We know that, for an inelastic collision, the total momentum is conserved before and after collision. So,
Initial momentum of the masses = Final momentum of the masses

Now, plug in the given values and solve for 'u₁'. This gives,
![u_1=((4+8)4-[8*(-7)] )/(4)\\\\u_1=(12* 4-(-56))/(4)\\\\u_1=(48+56)/(4)\\\\u_1=(104)/(4)\\\\u_1=26\ m/s](https://img.qammunity.org/2021/formulas/physics/college/lwmr1efxlsb8iqs53v2xvf64lzcjtln6i2.png)
Therefore, the initial velocity of 4 kg mass in positive x direction is 26 m/s.