A store is having a sale on jelly beans and trail mix. For 3 pounds of jelly beans and 2 pounds of trail mix, the total cost is $14. For 5 pounds of jelly beans and 6 bounds of trail mix, the total cost is $28. Find the cost for each pound of jelly beans and each pound for trail mix.