Given that,
Earth of mass M=6×1024kg
Gravitational force F=3.5×102N
Distance between earth and sun r=1.5×1011m
Mass of the sun = m
Now,
The gravitational force is
F=GMmr2
3.5×102=6.67×10−11×6×1024×m(1.5×1011)2
m=3.5×102×1.5×1011×1.5×10116.67×10−11×6×1024
m=0.1967×1011kg
m=1.97×1010kg
Hence, the mass of the sun is 1.97×1010Kg