Margie is liable for purchasing a week's supply of food and medication for dogs and cats at the local shelter. The food and medication for every dog costs twice as much as those supplies for the cat. She requires to feed 164 cats and 24 dogs. The budget is 4240$ How much can Margie spend on every dog and cat for food and medication?