A store is having a sale on chocolate chips and walnuts. For 2 pounds of chocolate chips and 12 pounds of walnuts, the total cost is $23. For 5 pounds of chocolate chips and 3 pounds of walnuts, the total cost is $17. Find the cost for each pound of chocolate chips and each pound of if walnuts.