Answer:
Let's denote the number of pumpkins as \( P \) and the number of squashes as \( S \).
From the given information, we have two equations:
1. The number of squashes sold is six more than the number of pumpkins: \( S = P + 6 \).
2. The total sales amount is $98: \( 5P + 3S = 98 \).
Now, substitute the expression for \( S \) from the first equation into the second equation:
\[ 5P + 3(P + 6) = 98 \]
Simplify and solve for \( P \).
After finding the value for \( P \), substitute it back into the equation \( S = P + 6 \) to find \( S \).
This will give you the number of pumpkins and squashes they sold.