Margie is responsible for buying a weeks supply of food and medication for the dogs and cats at a local shelter. The food and medication for each dog costs twice as much as those supplies for a cat. She needs to feed 164 cats and 24 dogs. Her budget is $4240. How much can margie spend on each dog for food and medication