Joanna went school supply shopping. She spent $30.70 on notebooks and pencils. Notebooks cost $2.20 each and pencils cost $1.09 each. She bought a total of 19 notebooks and pencils. How many of each did she buy?