To raise money for a class trip, students sold bags of mixed nuts and bags of dried fruit. Evan sold 12 bags of mixed nuts and 10 bags of dried fruit and collected $54. Brett sold 8 bags of mixed nuts and 15 bags of dried fruit and collected $61. How much did they charge for each type of bag?