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