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

Aliyah had $24 originally and spent $10, so she has $24 - $10 = $<<24-10=14>>14 left.

She bought seven pencils, so each pencil cost $14 / 7 = $<<14/7=2>>2. Answer: \boxed{2}.

To determine the cost of each pencil, we need to calculate the difference between Aliyah's initial amount and the remaining amount after buying the pencils.

Step 1: Calculate the amount spent on pencils:
Initial amount = $24
Remaining amount = $10
Amount spent = Initial amount - Remaining amount = $24 - $10 = $14

Step 2: Determine the cost of each pencil:
Number of pencils bought = 7
Cost of each pencil = Amount spent / Number of pencils bought = $14 / 7 = $2

Therefore, each pencil costs $2.