Anna bought some pens and some pencils from a shop. The cost of each pen was $2 and the cost of the pencil was $1. Determine the linear equation that could be used to solve the given problem if she paid $15 for all 9 items. (Let the number of pens be )