To solve the problem it is necessary to resort to the concepts of kinetic energy of the bodies.
Kinetic energy in vector form can be expressed as

According to the description given we have to


Equating both equation we have that


The kinetic energy of the two particles would be given by



We have the consideration that

Then replacing,
