Plasma dynamics during the evolution of two wire Z-pinch