Three particles A,B and C of masses 10 g, 20 g and 30 g are initially moving with the velocity of 20 cm/s each along the positive direction of the three coordinate axes x, y and z respectively. Due to their mutual interaction, particle A comes to rest. If the particle B has a velocity of 10^i+20^k cm/s then find the velocity of particle C.