Subjects algebra

Pumpkins Squashes

Step-by-step solutions with LaTeX - clean, fast, and student-friendly.

Use the AI math solver

1. **Problem statement:** A roadside vegetable stand sells pumpkins for $5 each and squashes for $3 each. They sold 6 more squashes than pumpkins, and total sales were 98. 2. **Define variables:** Let $p$ = number of pumpkins sold, $s$ = number of squashes sold. 3. **Write equations:** - Since 6 more squashes were sold: $s = p + 6$ - Total sales: $5p + 3s = 98$ 4. **Substitute $s$ in the sales equation:** $$5p + 3(p + 6) = 98$$ 5. **Simplify:** $$5p + 3p + 18 = 98$$ $$8p + 18 = 98$$ 6. **Solve for $p$:** $$8p = 98 - 18$$ $$8p = 80$$ $$p = \frac{80}{8} = 10$$ 7. **Find $s$:** $$s = p + 6 = 10 + 6 = 16$$ **Answer:** They sold 10 pumpkins and 16 squashes.