A roadside vegetable stand sells pumpkins for $5 each and squashes for $3 each. One day they sold 6 more squash than pumpkins, and their sales totaled $98. Write and solve a system of equations to find how many pumpkins and squash they sold?
How do I do this?

Respuesta :

Rate at which each pumpkin is sold = $5
Rate at which each squash is sold = $3
Let us assume the number of pumpkins sold in a day = x
Then
The number of squash sold on that day = x + 6
Total amount of sales on that day = $98
Then
5x + 3( x + 6) = 98
5x + 3x + 18 = 98
8x = 98 - 18
8x = 80
x = 80/8
  = 10
So
The number of pumpkins sold = 10
The number of squash sold = x + 6
                                            = 10 + 6
                                            = 16