Solution:
we are given that
Tory goes shopping and buys pencils and notebooks
Tory buys a total of 8 items, p of which are pencils.
So Number of Notebooks
![=(8-p)\\](https://img.qammunity.org/2019/formulas/mathematics/high-school/4qke7bfwkgnjofol08fnm4823w96d0an2l.png)
Also we are given that each pencil costs $0.29 and each notebook costs $2.59.
So Total spending on pencil can be given by the expression=$0.29P
The Total spending on the Notebook can be given by the expression=$2.59(8-P)
Total spending all together=$0.29P+$2.59(8-P)
Since we are given that Tory's bill is $9.22
So we can write
![image](https://img.qammunity.org/2019/formulas/mathematics/high-school/998h7v506cg1n8b7rj226ry2b74u1dkf3i.png)
Hence Tory Buys 5 Pencils.