Let the cost of trail mix be $x and the cost of a loaf of pumpkin bread be $y
As per the given question
x + y = 11 ............(1)
and
4x + 2y = 24 ............(2)
solving (1) and (2)
2y = 20
y = 10
and x = 1
This means cost of trail mix is $1 and the cost of a loaf of pumpkin bread be $10