Joanna went school supply shopping. She spent $26.75 on notebooks and pencils. Notebooks cost $1.85 each and pencils cost $1.38 each. She bought a total of 17 notebooks and pencils. How many of each did she buy?
A. 12 notebooks; 5 pencils
B. 7 notebooks; 10 pencils
C. 10 notebooks; 7 pencils
D. 5 notebooks; 12 pencils