A carpenter purchased 50 ft of redwood and 70 ft of pine for a total cost of $280. A second purchase, at the same prices, included 100 ft of redwood and 60 ft of pine for a total cost of $440. Find the cost per foot of redwood and of pine.