A school bought pens, each costing $1, and pencils, each costing $0.5. The cost of the whole purchase was $220. How many pens and pencils were purchased if there were 80 more pencils than pens?