A store is having a sale on jellybeans and trail mix. For 8 pounds of jellybeans and 3 pounds of trail mix the total cost $34. For 2 pounds of jellybeans and 5 pounds of trail mix the total cost is $17. Find the cost of each pound of jellybeans and each pound of trail mix.