A baker purchased 12 lb of wheat flour and 15 lb of rye flour for a total cost of $18.30. A second purchase at the same prices, included 15 lb of wheat flour and 10 lb of rye flour. The cost of the second purchase was $16.75. Find the cost per pound of the wheat flour and the rye flour.