Answer: 35 granola bars and 45 pies were sold.
Explanation:
Let x represent the number of granola bar that was sold.
Let y represent the number of pie that was sold.
A school marching band will raise one dollar for each granola bar and five dollars for each pie they sell. Yesterday, they raise $260 by selling 80 bars and pies.
This means that
x + 5y = 260 - - - - - - - - - -1
Since they sold a total of 80 bars and pies, it means that
x + y = 80
Substituting x = 80 - y into equation 1, it becomes
80 - y + 5y = 260
- y + 5y = 260 - 80
4y = 180
y = 180/4 = 45
x = 80 - y = 80 - 45
x = 35