To get the answer we can make equations
Lets assume that number of pumpkins sold.
5x - its how much seller get for the pumpkins
36x - its how much selleg get for the squasches.
Now we can create equation
5x+36x=98
5x+18x=98
23x=98 /:23 divide both sides by 23
x=98:23
x=4,26 ~ 4 - pumpkins
64.26=25.56~ 26 squashes