Explanation:
Below is an attachment containing the solution.
Here we can say that there is no external torque on this system
So here we can say that angular momentum is conserved
so here we will have

now we have



similarly let the final distance is "r"
so now we have


now from above equation we have


so final distance is 0.04 m between them
That was sun as some smaller masses formed planets and other remaining formed sun
c] Electrons
Electron gets transferred