A store manager purchased a total of 15 pens and markers. Each pen cost $3.50, and each marker cost $1.75. If the manager spent a total of $38.50, how many pens did the store manager purchase?