A store is having a sale on jelly beans and almonds. For 3 pounds of jelly beans and 8 pounds of almonds, the total cost is $31. For 5 pounds of jelly beans and 2 pounds of almonds, the total cost is $12. Find the cost for each pound of jelly beans and each pound of almonds