Question 1081797
Let n be the number of nickels in Tom's pocket. Then:
nē+15=8n
nē-8n+15=0
(n-5)(n-3)=0
n=5 or 3
We know there's not enough nickels to make a quarter, so there must be 3 nickels.
There are 4 times as many quarters as nickels, so there are 12 quarters--bringing the change up to a total of $3.15 ☺☺☺☺