Given :
mass of sun M = 2 × 1030 kg
mass of earth m = 6 × 1024 kg
Average distance r = 1.5 × 108 km
= 1.5 × 108 × 1000 m
= 1.5 × 1011m
then gravitation force
F = GMmr2
=6.67×10−11×2×1030×6×1024(1.5×1011)2
= 6.67×2×6×10431.5×1.5×1022
= 80.076×10212.25= 3.57 × 1022 N