Haley is responsible for buying a week's supply of food and medication for the pigs and cows at a local co-op. The food and medication for each cow costs three times as much as those supplies for a pig. She needs to feed 30 cows and 8 pigs. Her budget is $2450. Let p represent the cost per pig and c represent the cost per cow.