Let x be the cost of a pound of jelly beans and y be the cost of a pound of trail mix.
In this case, we have:
I) 12*x + y*2 = 47
II) 3*x + 5*y = 23
Multiplying equation II by 4 we got:
I) 12*x + y*2 = 47
II) 12*x + 20*y = 92
Subtracting equation II by equation I, we have:
18*y = 45, which implies y = 2.5
Then, 12*x + 2.5*2 = 47, which implies x = 3.5
Therefore, each pound of jelly beans cost $3.5 and each pound of trail mix cost $2.5