Find expression for final velocities when two bodies of same mass m have head on collision when moving in opposite directions with equal speeds

Head on collision : When a body moving in a straight line collides with another body moving in the same straight line, the collision is called head-on collision.