Aliyah had $24 to spend on seven pencils. After buying them she had $10. How much did each pencil cost?

Aliyah spent 24 - 10 = $<<24-10=14>>14 on pencils.

Therefore, each pencil costs 14 รท 7 = $<<14/7=2>>2. Answer: \boxed{2}.