Lucy bought seven pens. Four of the pens cost a dollar each. Three of the pens cost 30 cents each. What was the average cost of each pen?