If 2 bags of grap are sold, then pears sold are 7
So pears = [tex]\frac{7}{2}[/tex] × grap bags
Let number of bags of grap be = G
and number of pears be = P
Total amount of grap and pears sold = 810
⇒ P + G = 810
⇒ [tex]\frac{7}{2} * G + G = 180[/tex]
⇒ 9G = 360
⇒ G = 40
and P = [tex]\frac{7}{2}[/tex] × 40
⇒ P = 140
Hence, 40 bags of grap were sold and 140 pears were sold.