Given:
The mass of the body X is m = 500 g =0.5 kg
The initial speed of the body X is

The mass of the body Y is m' = 200g = 0.2 kg
The initial speed of the body Y is

The final speed of the body Y is

To find the final speed of the body X.
Step-by-step explanation:
The final speed of the body X can be calculated as

Thus, the speed of the body X after impact is 14 m/s.