If r1 and r2 are distances of stars A and B from the centre of mass, then we have
m1r1=m2r2 and r1+r2=r
This gives r1=m2rm1+m2
Given m1=2m2
Therefore, r1=m2r2m2+m2=r3
Now from the condition of the circular path, if T1 is period of revolution of star A about the centre of mass, then
m1r1(2πT1)2=Gm1m2r2=m1(r3)(2πT1)2=Gm1m2r2
(2πT1)2=3Gm2r3
But m2=Ms3, where Ms= mass of Sun
(2πT1)2=GMsr3
Again period of revolution of earth (Te) about the Sun is
meRω2e⇒(2πTe)2=GMsR3(∵ωe=2πTe)
As T1=Te=1 year
r3=R3⇒r=R