A store is having a sale on chocolate chips and walnuts. For 5 pounds of chocolate chips and 3 pounds of walnuts, the total cost is $27. For 7 pounds of chocolate chips and 9 pounds of walnuts, the total cost is $51.
Find the cost for each pound of chocolate chips and each pound of walnuts.