Three particles with masses 10,20 and 40 g are moving with velocities 10^i,10^j and 10^km/sec respectively. If due to some interaction the first particle comes to rest and the velocity of second becomes (3^i+4^jm/sec). Then the velocity of third particle after their interaction is: