Let's take those 6 squashes. You get 98-6*3=80. Now you have an identical number of pumpkins and squashes. A pumpkin and a squash are sold, in total, for $8, so to get $80 you need 10 of each. You have 10 pumpkins and 10+6=16 squashes.
The roadside vegetable stand sold 10 pumpkins and 16 squashes, based on the given total sales and the relation between the quantities sold. The system of equations solved was S = P + 6 and 5 P + 3 S = 98 . By substituting and solving, we found the quantities sold for each vegetable.
;