

Let the time period of planet B be T.
Let the radius of planet A and B be rA and rB respectively.
Time period of A = 8T.
According to Keplers third law,
So, T/8T = rB3/rA3
So, rB3/rA3 = 1/8
rB/rA = 1/2
Thus, rA = 2rB.
Thus, distance of planet A is twice as that of B.
