According to the question,
M= Mass of the Sun =2×1030 kg
m= Mass of the earth =6×1024 kg
R= Average distance between the earth and the Sun =1.5×1011 m
From the universal law of gravitation,
F=GM×mR2
Therefore, putting all the values given in question in above equation we get
F=6.67×10−11(2×1030)×(6×1024)(1.5×1011)2=35.57×1021=3.56×1022 N