Let the number of baskets of grapes = G
Then the baskets of plums = 35 - G
So
G (5) + (35 - G)(10 ) = 290 simplify
5G + 350 - 10G = 290
-5G + 350 = 290 subtract 350 from each side
-5G = -60 divide both sides by - 5
G = 12 = baskets of grapes in package
35 - G = 35 - 12 = 23 = baskets of plums in each package
