Two bodies of masses 3kg and 5kg moving with velocities 2 m/s and V m/s…