Math
posted by Kelly .
Mr. Smith has 17 18cent notebooks and 7cent pencils. The notebooks and pencils are worth $1.85. How many notebooks and how many pencils does Mr. Smith have?
I would like to see how this is solved, not just the answer, that way I can learn how to do it.

17=N+P
.18N+.07P=1.85
in the first equation solve for N
N=17P
Put that into the second equation.
.18(17P)+.07P=1.85
then solve for P. Once you have that,
N=17P 
Thank you so much for explaining.