Please provide the equation and the answer to this question:

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