The cost of blueberry pies is $7 and the cost of pumpkin pie is $16.
Let the number of blueberry pies be x
Let the number of pumpkin pies be y
According to question, we have
Bring the value of 6x from eq(2) i.e.
And put it in the eq(1), we get,
and put the value of y in the equation i.e.
Hence, the cost of blueberry pies is $7 and the cost of pumpkin pie is $16.