If the distance between two stars remains unchanged and the matter of one star is transferred to another, how can the period and linear velocity change

If the distance between two stars remains unchanged and the matter of one star is transferred to another, how can the period and linear velocity change

Suppose that the masses of two objects are M1 and M2 respectively, and the corresponding radii are R1 and R2, then there are:
Gm1*m2/(r1+r2)^2=m1*(w^2)*r1=m2*(w^2)*r2
M1 * R1 = M2 * R2 and V = w * r
Therefore, when M1 decreases and M2 increases, R1 and V1 increase and R2 and V2 decrease
T = 2 π / W period invariant