Joe has to buy 2 bags of dog food and 1 bag of dog treats. He remembers the dog treats are supposed to cost $10, and he only has $40 to spend altogether. Which equation would be best to help him recalculate how much he can spend on each bag of dog food?
write an equation and solve