Answer:
Let bags of pecans cost = x
Make an equation :
Bags of almonds cost = x + 3 (they said almonds cost 3 dollars more)
Total number of bags ordered: (3 bags pecans) + (5 bags of almonds)
Cost for pecans = 3x
Cost for almonds = 5(x + 3) = 5x + 15
Price of pecans + price of almonds = total cost
Solve for x:
3x + 5(x + 3) = 55 (remove brackets)
3x + 5x + 15 = 55 (add like terms)
8x + 15 = 55
8x + 15 - 15 = 55 - 15 (get rid of the 15)
8x = 40
8x/8 = 40/8
x = 5
bags pecans cost is $5
bags of almonds is $5+$3 = $8