Castel bought 5 writing utensils for a total of $8. Pens cost $1 and pencils cost $2. How many of each writing utensil did he buy?